Difference between revisions of "Compilation Installation"
Line 1: | Line 1: | ||
− | + | To install aMule you can either install it from scratch, as described in '''Manual Compilation''' or use RPMs which will speed things up a lot, as described in the '''Installing using RPMs''' section. | |
+ | == Manual Compilation == | ||
− | |||
+ | '''NOTE:''' This HowTo uses [[wxWidgets]] 2.4.2 and [[libcrypto|Crypto++]] 5.1, as an example, however [[aMule]] can also be compiled using [[wxWidgets]] 2.5.x and versions of Crypto++ newer than 5.1. | ||
− | '''WARNING:''' Make sure you have '''no''' [[wxWidgets | + | |
+ | === Compiling from sources === | ||
+ | '''WARNING:''' Make sure you have '''no''' copies of [[wxWidgets]] installed. If you already have [[wxWidgets]] installed, check [[How to uninstall wxWidgets]] before starting a new installation. If you still have problems after this, then [[Check_if_wx_is_installed_twice|check if wx is installed twice]], since that's a common compilation and runtime problem. | ||
'''NOTE:''' In [[wxWidgets]] 2.5.1 (and '''only''' in that version), [[wxBase]] is not distributed as a separate tarball. So if you are going to compile [[wxWidgets|wxGTK]] 2.5.1, skip the first step ([[wxBase]] compilation). | '''NOTE:''' In [[wxWidgets]] 2.5.1 (and '''only''' in that version), [[wxBase]] is not distributed as a separate tarball. So if you are going to compile [[wxWidgets|wxGTK]] 2.5.1, skip the first step ([[wxBase]] compilation). | ||
− | |||
− | + | ==== Step 1: [[wxBase]] ==== | |
− | + | * [http://prdownloads.sourceforge.net/wxwindows/wxGTK-2.4.2.tar.bz2 Download wxBase]. | |
− | + | ||
* compile [[wxBase]] -> | * compile [[wxBase]] -> | ||
Line 27: | Line 28: | ||
− | + | ==== Step 2: [[wxWidgets|wxGTK]] ==== | |
− | + | *download [[wxWidgets|wxGTK]] -> | |
− | + | **[http://download.berlios.de/amule/wxGTK-2.4.2.tar.gz wxGTK-2.4.2.tar.gz] | |
* compile [[wxWidgets|wxGTK]] -> | * compile [[wxWidgets|wxGTK]] -> | ||
Line 41: | Line 42: | ||
− | + | ==== Step 3: [[libcrypto|Crypto++]] ==== | |
− | + | *download [[libcrypto]] -> | |
− | + | **[http://download.berlios.de/amule/crypto-5.1.tar.bz2 crypto-5.1.tar.bz2] | |
*compile [[libcrypto]] -> | *compile [[libcrypto]] -> | ||
Line 54: | Line 55: | ||
*as '''root''': | *as '''root''': | ||
− | **'' | + | **''cp libcryptopp.a /usr/lib/'' |
+ | **''mkdir /usr/include/cryptopp'' | ||
+ | **''cp *.h /usr/include/cyrptopp/'' | ||
+ | **''ldconfig'' | ||
− | + | ==== Step 4: [[aMule]] ==== | |
− | + | *download latest [[aMule]] version -> | |
− | + | **[https://developer.berlios.de/project/showfiles.php?group_id=1296 latest aMule] | |
− | + | **(mirror) [http://mirror.amule.org latest aMule] | |
* compile [[aMule]] -> | * compile [[aMule]] -> | ||
Line 74: | Line 78: | ||
− | + | === Installing using RPMs === | |
− | + | ==== Step 1: [[wxBase]] ==== | |
− | + | *download [[wxBase]] -> | |
− | + | **[http://download.berlios.de/amule/wxBase-2.4.2-1.i586.rpm wxBase-2.4.2-1.i586.rpm] | |
− | + | ||
*install [[wxBase]] -> | *install [[wxBase]] -> | ||
Line 89: | Line 92: | ||
− | + | ==== Step 2: [[wxWidgets|wxGTK]] ==== | |
− | + | *download [[wxWidgets|wxGTK]] and [[wxWidgets|wxGTK]]-devel -> | |
− | + | **[http://download.berlios.de/amule/wxGTK-2.4.2-1.i386.rpm wxGTK-2.4.2-1.i386.rpm] [http://download.berlios.de/amule/wxGTK-devel-2.4.2-1.i386.rpm wxGTK-devel-2.4.2-1.i386.rpm] | |
* install [[wxWidgets|wxGTK]] -> | * install [[wxWidgets|wxGTK]] -> | ||
Line 99: | Line 102: | ||
− | + | ==== Step 3. [[libcrypto]] ==== | |
− | + | *download [[libcrypto]] -> | |
− | + | **[[http://www.redhat.com RedHat]] & [http://www.suse.com SuSE]: [http://download.berlios.de/amule/libcryptopp-5.1-4_rh9-suse.i686.rpm libcryptopp-5.1-4_rh9-suse.i686.rpm] and [http://download.berlios.de/amule/libcryptopp-devel-5.1-4_rh9-suse.i686.rpm libcryptopp-devel-5.1-4_rh9-suse.i686.rpm] | |
− | + | **FC1: [http://download.berlios.de/amule/libcryptopp-5.1-4_fc1.i686.rpm libcryptopp-5.1-4_fc1.i686.rpm] and [http://download.berlios.de/amule/libcryptopp-devel-5.1-4_fc1.i686.rpm libcryptopp-devel-5.1-4_fc1.i686.rpm] | |
− | + | **MDK: [http://download.berlios.de/amule/libcryptopp5-5.1-2mdk.i586.rpm libcryptopp5-5.1-2mdk.i586.rpm] and [http://download.berlios.de/amule/libcryptopp5-devel-5.1-2mdk.i586.rpm libcryptopp5-devel-5.1-2mdk.i586.rpm] | |
− | + | *as '''root''': | |
− | + | **''rpm -Uvh the-above-downloaded-package.rpm'' | |
− | + | ==== Step 4: [[aMule]] ==== | |
− | + | *download latest [[aMule]] version -> | |
− | + | **[https://developer.berlios.de/project/showfiles.php?group_id=1296 latest aMule] | |
− | + | **(mirror) [http://mirror.amule.org latest aMule] | |
* install [[aMule]] -> | * install [[aMule]] -> |
Revision as of 01:17, 24 July 2004
To install aMule you can either install it from scratch, as described in Manual Compilation or use RPMs which will speed things up a lot, as described in the Installing using RPMs section.
Contents
Manual Compilation
NOTE: This HowTo uses wxWidgets 2.4.2 and Crypto++ 5.1, as an example, however aMule can also be compiled using wxWidgets 2.5.x and versions of Crypto++ newer than 5.1.
Compiling from sources
WARNING: Make sure you have no copies of wxWidgets installed. If you already have wxWidgets installed, check How to uninstall wxWidgets before starting a new installation. If you still have problems after this, then check if wx is installed twice, since that's a common compilation and runtime problem.
NOTE: In wxWidgets 2.5.1 (and only in that version), wxBase is not distributed as a separate tarball. So if you are going to compile wxGTK 2.5.1, skip the first step (wxBase compilation).
Step 1: wxBase
- compile wxBase ->
- tar -zxvf wxBase-2.4.2.tar.gz
- cd wxBase-2.4.2
- ./configure --prefix=/usr && make
- as root:
- make install
- ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config
- ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config
- ldconfig
Step 2: wxGTK
- download wxGTK ->
- compile wxGTK ->
- tar -zxvf wxGTK-2.4.2.tar.gz
- cd wxGTK-2.4.2
- ./configure --prefix=/usr --disable-gtk2 --with-gtk && make
- tar -zxvf wxGTK-2.4.2.tar.gz
- as root:
- make install
- ldconfig
Step 3: Crypto++
- download libcrypto ->
- compile libcrypto ->
- tar xvjf crypto-5.1.tar.bz2
- cd crypto-5.1
- make
- as root:
- cp libcryptopp.a /usr/lib/
- mkdir /usr/include/cryptopp
- cp *.h /usr/include/cyrptopp/
- ldconfig
Step 4: aMule
- download latest aMule version ->
- latest aMule
- (mirror) latest aMule
- compile aMule ->
- tar -zxvf aMule-X.X.X.tar.gz (replace X with the right version number..)
- cd aMule-X.X.X
- ./configure --disable-debug --enable-optimize && make
- as root:
- make install
- run aMule as user from your console by typing -> amule
Installing using RPMs
Step 1: wxBase
- download wxBase ->
- install wxBase ->
- as root:
- rpm -Uvh wxBase-2.4.2-1.i586.rpm
- ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config
- ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config
- ldconfig
- as root:
Step 2: wxGTK
- install wxGTK ->
- as root:
- rpm -Uvh wxGTK-2.4.2-1.i386.rpm wxGTK-devel-2.4.2-1.i386.rpm
- ldconfig
- as root:
Step 3. libcrypto
- download libcrypto ->
- as root:
- rpm -Uvh the-above-downloaded-package.rpm
Step 4: aMule
- download latest aMule version ->
- latest aMule
- (mirror) latest aMule
- install aMule ->
- as root:
- rpm -Uvh aMule-X.X.X-1.iX86-X.rpm (replace X with the right version number..)
- as root:
- run aMule as user from your console by typing -> amule