Difference between revisions of "Compilation Installation"

From AMule Project FAQ
Jump to: navigation, search
Line 7: Line 7:
 
To install aMule you can either install it from scratch, as described in '''Compiling From Sources''' or use RPMs which will speed things up a lot, as described in the '''Installing using RPMs''' section.
 
To install aMule you can either install it from scratch, as described in '''Compiling From Sources''' or use RPMs which will speed things up a lot, as described in the '''Installing using RPMs''' section.
  
 
'''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 [[libcrypto|Crypto++]] newer than 5.1. Starting with 2.0.0-rc6, you don't even need Crypto++.
 
  
 
== Compiling From Sources ==
 
== 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.
 
'''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, [[wxBase]] is not distributed as a separate tarball. So if you are going to compile [[wxWidgets|wxGTK]] 2.5.x, skip the second step ([[wxBase]] compilation).
+
'''NOTE:''' In [[wxWidgets]] >= 2.5.1, [[wxBase]] is not distributed as a separate tarball.
  
 
==== Step 1: [[wxWidgets|wxGTK]] ====
 
==== Step 1: [[wxWidgets|wxGTK]] ====
 
*download [[wxWidgets|wxGTK]] ->
 
*download [[wxWidgets|wxGTK]] ->
**[http://download.berlios.de/amule/wxGTK-2.4.2.tar.gz wxGTK-2.4.2.tar.gz]
+
**[ftp://biolpc22.york.ac.uk/pub/2.6.0/wxGTK-2.6.0.tar.gz wxGTK-2.6.0.tar.gz]
 
+
* compile [[wxWidgets|wxGTK]] ->
+
**''tar -zxvf wxGTK-2.4.2.tar.gz''
+
***''cd wxGTK-2.4.2''
+
***''./configure --prefix=/usr --disable-gtk2 --with-gtk && make''
+
  
 +
* compile [[wxWidgets|wxGTK]]
 +
**''tar -zxvf wxGTK-2.6.0.tar.gz''
 +
***''cd wxGTK-2.6.0''
 +
***''Linked against GTK1: ./configure --prefix=/usr --disable-gtk2 --with-gtk && make''
 +
***''Linked against GTK2: ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise && make
 
*as '''root''':
 
*as '''root''':
 
**''make install''
 
**''make install''
 
**''ldconfig''
 
**''ldconfig''
 
  
 
==== Step 2: [[wxBase]] ====
 
==== Step 2: [[wxBase]] ====
*download [[wxBase|wxBase]] ->
+
*Since [[wxGTK]] 2.5.x you don't need [[wxBase]] anymore, except if you want to compile [[aMule|aMule daemon]] without X.
**[http://download.berlios.de/amule/wxBase-2.4.2.tar.gz wxBase-2.4.2.tar.gz]
+
  
* compile [[wxBase]] ->
 
**''tar -zxvf wxBase-2.4.2.tar.gz''
 
**''cd wxBase-2.4.2''
 
**''./configure --prefix=/usr && make''
 
  
*as '''root''':
+
==== Step 3: [[aMule]] ====
**''make install''
+
**<font color="blue">''ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config''
+
**''ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config''</font>
+
**''ldconfig''
+
 
+
 
+
==== Step 3: [[libcrypto|Crypto++]] ====
+
 
+
'''Note:''' Only needed from version 2.0.0-rc1 to 2.0.0-rc5 (included)
+
 
+
*download [[libcrypto]]++ ->
+
**[http://download.berlios.de/amule/crypto-5.2.1.tar.bz2 crypto-5.2.1.tar.bz2]
+
 
+
*compile [[libcrypto]]++ ->
+
**''tar xvjf crypto-5.2.1.tar.bz2''
+
**''cd crypto-5.2.1''
+
**''make''
+
::If you have problems compiling with older [http://gcc.gnu.org gcc] versions, it can be due to stray [http://www.freedos.org DOS] newlines in some files. Invoke
+
::: ''file * | grep CRLF | while read file rest; do dos2unix ${file%:}; done''
+
::to convert them to UNIX newlines ([http://www.gnu.org/software/bash/bash.html bash] syntax).
+
 
+
*as '''root''':
+
:On earlier [[libcrypto]]++ versions, running ''make install'' would be enough. Since [[libcrypto]]++ 5.2 this is no longer available. So do the following:
+
 
+
:*''cp libcryptopp.a /usr/lib/''
+
:*''mkdir /usr/include/cryptopp''
+
:*''cp *.h /usr/include/cryptopp/''
+
:*''ldconfig''
+
 
+
==== Step 4: [[aMule]] ====
+
 
*download latest [[aMule]] version ->
 
*download latest [[aMule]] version ->
**[https://developer.berlios.de/project/showfiles.php?group_id=1296 latest aMule]
+
**[http://developer.berlios.de/project/showfiles.php?group_id=1296 latest aMule]
  
 
* compile [[aMule]] (please check the [[configure|configure article]]) ->
 
* compile [[aMule]] (please check the [[configure|configure article]]) ->
 
**''tar -zxvf aMule-X.X.X.tar.gz'' (replace X with the right version number..)
 
**''tar -zxvf aMule-X.X.X.tar.gz'' (replace X with the right version number..)
 
**''cd aMule-X.X.X''
 
**''cd aMule-X.X.X''
**''./configure --disable-debug --enable-optimise && make''
+
**''./configure --disable-debug --enable-optimize && make''
  
 
*as '''root''':
 
*as '''root''':
Line 88: Line 50:
  
 
==== Step 1: [[wxWidgets|wxGTK]] ====
 
==== Step 1: [[wxWidgets|wxGTK]] ====
*download [[wxWidgets|wxGTK]] and [[wxWidgets|wxGTK]]-devel ->
+
*download [[wxWidgets|wxGTK]] for your [[Linux]] distribution ->
**[http://download.berlios.de/amule/wxGTK-2.4.2-1.i386.rpm wxGTK-2.4.2-1.i386.rpm]&nbsp;&nbsp; [http://download.berlios.de/amule/wxGTK-devel-2.4.2-1.i386.rpm wxGTK-devel-2.4.2-1.i386.rpm]
+
**[http://www.amule.org/files/files.php?cat=12 wxGTK-2.6.0]
  
 
* install [[wxWidgets|wxGTK]] ->
 
* install [[wxWidgets|wxGTK]] ->
 
**as '''root''':
 
**as '''root''':
***''rpm -Uvh wxGTK-2.4.2-1.i386.rpm wxGTK-devel-2.4.2-1.i386.rpm''
+
***''rpm -Uvh wxGTK-2.6.0-X.rpm'' (replace X with the right name..)
 
***''ldconfig''
 
***''ldconfig''
  
  
 
+
==== Step 2: [[aMule]] ====
==== Step 2: [[wxBase]] ====
+
*download [[wxBase]] ->
+
**[http://download.berlios.de/amule/wxBase-2.4.2-1.i586.rpm wxBase-2.4.2-1.i586.rpm]
+
 
+
*install [[wxBase]] ->
+
**as '''root''':
+
***''rpm -Uvh wxBase-2.4.2-1.i586.rpm''
+
***<font color="blue">''ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config''
+
***''ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config''</font>
+
***''ldconfig''
+
 
+
 
+
==== Step 3. [[libcrypto|Crypto++]] ====
+
 
+
'''Note:''' Only needed from version 2.0.0-rc1 to 2.0.0-rc5 (included)
+
 
+
*download [[libcrypto]]++ ->
+
**[http://www.redhat.com RedHat] & [http://www.suse.com SuSE]: [http://download.berlios.de/amule/libcryptopp-5.2.1-1.i586-RH-SuSE.rpm libcryptopp-5.2.1-1.i586-RH-SuSE.rpm] and  [http://download.berlios.de/amule/libcryptopp-devel-5.2.1-1.i586-RH-SuSE.rpm libcryptopp-devel-5.2.1-1.i586-RH-SuSE.rpm]
+
**[http://fedora.redhat.com FC]: [http://download.berlios.de/amule/libcryptopp-5.2.1-1.i586-FC.rpm libcryptopp-5.2.1-1.i586-FC.rpm] and  [http://download.berlios.de/amule/libcryptopp-devel-5.2.1-1.i586-FC.rpm libcryptopp-devel-5.2.1-1.i586-FC.rpm]
+
**[http://www.mandrake.com 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 ->
 
*download latest [[aMule]] version ->
**[https://developer.berlios.de/project/showfiles.php?group_id=1296 latest aMule]
+
**[http://developer.berlios.de/project/showfiles.php?group_id=1296 latest aMule]
  
 
* install [[aMule]] ->
 
* install [[aMule]] ->
 
**as '''root''':
 
**as '''root''':
***''rpm -Uvh aMule-X.X.X-1.iX86-X.rpm'' (replace X with the right version number..)
+
***''rpm -Uvh aMule-X.rpm'' (replace X with the right name and version number..)
  
 
* run [[aMule]] as user from your console by typing -> ''amule''
 
* run [[aMule]] as user from your console by typing -> ''amule''

Revision as of 21:57, 20 May 2005

English | Français | Nederlands | Português

Manual Installation

To install aMule you can either install it from scratch, as described in Compiling From Sources or use RPMs which will speed things up a lot, as described in the Installing using RPMs section.


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, wxBase is not distributed as a separate tarball.

Step 1: wxGTK

  • compile wxGTK
    • tar -zxvf wxGTK-2.6.0.tar.gz
      • cd wxGTK-2.6.0
      • Linked against GTK1: ./configure --prefix=/usr --disable-gtk2 --with-gtk && make
      • Linked against GTK2: ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise && make
  • as root:
    • make install
    • ldconfig

Step 2: wxBase


Step 3: aMule

  • compile aMule (please check the configure article) ->
    • 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: wxGTK

  • install wxGTK ->
    • as root:
      • rpm -Uvh wxGTK-2.6.0-X.rpm (replace X with the right name..)
      • ldconfig


Step 2: aMule

  • install aMule ->
    • as root:
      • rpm -Uvh aMule-X.rpm (replace X with the right name and version number..)
  • run aMule as user from your console by typing -> amule