Difference between revisions of "Compilation Installation"

From AMule Project FAQ
Jump to: navigation, search
(links, new stuff, ./configure update and so on)
Line 5: Line 5:
  
  
'''WARNING:''' Make sure you have NO wx installation. If you already have wx instaled, check [[How to uninstall wxWidgets]] before starting a new installation. If after all, you still have problems, [[Check_if_wx_is_installed_twice|check if wx is installed twice]], since that's a common compilation and runtime problem too.
+
'''WARNING:''' Make sure you have '''no''' [[wxWidgets|wx]] installation. If you already have [[wxWidgets|wx]] installed, check [[How to uninstall wxWidgets]] before starting a new installation. If after all, you still have problems, [[Check_if_wx_is_installed_twice|check if wx is installed twice]], since that's a common compilation and runtime problem too.
  
 +
'''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
+
*Step 1. [[wxBase]]
**download wxBase ->
+
**download [[wxBase]] ->
 
***[http://download.berlios.de/amule/wxBase-2.4.2.tar.gz wxBase-2.4.2.tar.gz]
 
***[http://download.berlios.de/amule/wxBase-2.4.2.tar.gz wxBase-2.4.2.tar.gz]
  
* compile wxBase ->
+
* compile [[wxBase]] ->
**tar -zxvf wxBase-2.4.2.tar.gz
+
**''tar -zxvf wxBase-2.4.2.tar.gz''
**cd wxBase-2.4.2
+
**''cd wxBase-2.4.2''
**./configure --prefix=/usr && make
+
**''./configure --prefix=/usr && make''
  
*as root:
+
*as '''root''':
**make install
+
**''make install''
**<font color="blue">ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config
+
**<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>
+
**''ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config''</font>
**ldconfig
+
**''ldconfig''
  
  
*Step 2. wxGTK
+
*Step 2. [[wxWidgets|wxGTK]]
**download wxGTK ->
+
**download [[wxWidgets|wxGTK]] ->
 
***[http://download.berlios.de/amule/wxGTK-2.4.2.tar.gz wxGTK-2.4.2.tar.gz]
 
***[http://download.berlios.de/amule/wxGTK-2.4.2.tar.gz wxGTK-2.4.2.tar.gz]
  
* compile wxGTK ->
+
* compile [[wxWidgets|wxGTK]] ->
**tar -zxvf wxGTK-2.4.2.tar.gz
+
**''tar -zxvf wxGTK-2.4.2.tar.gz''
***cd wxGTK-2.4.2
+
***''cd wxGTK-2.4.2''
***./configure --prefix=/usr --disable-gtk2 --with-gtk && make
+
***''./configure --prefix=/usr --disable-gtk2 --with-gtk && make''
  
*as root:
+
*as '''root''':
**make install
+
**''make install''
**ldconfig
+
**''ldconfig''
  
  
*Step 3. libcrypto
+
*Step 3. [[libcrypto]]
**download libcrypto ->
+
**download [[libcrypto]] ->
 
***[http://download.berlios.de/amule/crypto-5.1.tar.bz2 crypto-5.1.tar.bz2]
 
***[http://download.berlios.de/amule/crypto-5.1.tar.bz2 crypto-5.1.tar.bz2]
  
*compile libcrypto ->
+
*compile [[libcrypto]] ->
**tar xvjf crypto-5.1.tar.bz2
+
**''tar xvjf crypto-5.1.tar.bz2''
**cd crypto-5.1
+
**''cd crypto-5.1''
**make
+
**''make''
::If you have problems compiling with older gcc versions, it can be due to stray DOS newlines in some files. Invoke
+
::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  
+
::: ''file * | grep CRLF | while read file rest; do dos2unix ${file%:}; done''
::to convert them to UNIX newlines (bash syntax).
+
::to convert them to UNIX newlines ([http://www.gnu.org/software/bash/bash.html bash] syntax).
  
*as root:
+
*as '''root''':
**make install && ldconfig
+
**''make install && ldconfig''
  
  
*Step 4. aMule
+
*Step 4. [[aMule]]
**download latest aMule version ->
+
**download latest [[aMule]] version ->
 
***[https://developer.berlios.de/project/showfiles.php?group_id=1296 latest aMule]
 
***[https://developer.berlios.de/project/showfiles.php?group_id=1296 latest aMule]
 
***(mirror) [http://mirror.amule.org latest aMule]
 
***(mirror) [http://mirror.amule.org latest aMule]
  
* compile aMule ->
+
* compile [[aMule]] ->
**tar -zxvf aMule-X.X.X.tar.gz (replace X with the right version nr..)
+
**''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''':
**make install
+
**''make install''
  
*run aMule as user from your console by typing -> amule
+
*run [[aMule]] as user from your console by typing -> ''amule''
  
  
  
<u><b><font color="red">B)</font> wxGTK - wxBase - libcrypto - aMule rpms</b></u>
+
<u>'''<font color="red">B)</font> [[wxWidgets|wxGTK]] - [[wxBase]] - [[libcrypto]] - [[aMule]] rpms</b></u>
  
  
*Step 1. wxBase
+
*Step 1. [[wxBase]]
**download wxBase ->
+
**download [[wxBase]] ->
 
***[http://download.berlios.de/amule/wxBase-2.4.2-1.i586.rpm wxBase-2.4.2-1.i586.rpm]
 
***[http://download.berlios.de/amule/wxBase-2.4.2-1.i586.rpm wxBase-2.4.2-1.i586.rpm]
  
*install wxBase ->
+
*install [[wxBase]] ->
**as root:
+
**as '''root''':
***rpm -Uvh wxBase-2.4.2-1.i586.rpm
+
***''rpm -Uvh wxBase-2.4.2-1.i586.rpm''
***<font color="blue">ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config
+
***<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>
+
***''ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config''</font>
***ldconfig
+
***''ldconfig''
  
  
*Step 2. wxGTK
+
*Step 2. [[wxWidgets|wxGTK]]
**download wxGTK and wxGTK-devel ->
+
**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]&nbsp;&nbsp; [http://download.berlios.de/amule/wxGTK-devel-2.4.2-1.i386.rpm wxGTK-devel-2.4.2-1.i386.rpm]
 
***[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]
  
* install 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.4.2-1.i386.rpm wxGTK-devel-2.4.2-1.i386.rpm''
***ldconfig
+
***''ldconfig''
  
  
*Step 3. libcrypto
+
*Step 3. [[libcrypto]]
**download libcrypto ->
+
**download [[libcrypto]] ->
***RH & SuSE: [http://download.berlios.de/amule/libcryptopp-5.1-4_rh9-suse.i686.rpm libcryptopp-5.1-4_rh9-suse.i686.rpm]&nbsp;&nbsp; [http://download.berlios.de/amule/libcryptopp-devel-5.1-4_rh9-suse.i686.rpm libcryptopp-devel-5.1-4_rh9-suse.i686.rpm]
+
***[[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]&nbsp;&nbsp; [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]&nbsp;&nbsp; [http://download.berlios.de/amule/libcryptopp-devel-5.1-4_fc1.i686.rpm libcryptopp-devel-5.1-4_fc1.i686.rpm]
 
***FC1: [http://download.berlios.de/amule/libcryptopp-5.1-4_fc1.i686.rpm libcryptopp-5.1-4_fc1.i686.rpm]&nbsp;&nbsp; [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]&nbsp;&nbsp; [http://download.berlios.de/amule/libcryptopp5-devel-5.1-2mdk.i586.rpm libcryptopp5-devel-5.1-2mdk.i586.rpm]
 
***MDK: [http://download.berlios.de/amule/libcryptopp5-5.1-2mdk.i586.rpm libcryptopp5-5.1-2mdk.i586.rpm]&nbsp;&nbsp; [http://download.berlios.de/amule/libcryptopp5-devel-5.1-2mdk.i586.rpm libcryptopp5-devel-5.1-2mdk.i586.rpm]
**as root:
+
**as '''root''':
***rpm -Uvh the-above-downloaded-package.rpm
+
***''rpm -Uvh the-above-downloaded-package.rpm''
  
*Step 4. aMule
+
*Step 4. [[aMule]]
**download latest aMule version ->
+
**download latest [[aMule]] version ->
 
***[https://developer.berlios.de/project/showfiles.php?group_id=1296 latest aMule]
 
***[https://developer.berlios.de/project/showfiles.php?group_id=1296 latest aMule]
 
***(mirror) [http://mirror.amule.org latest aMule]
 
***(mirror) [http://mirror.amule.org 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 nr..)
+
***''rpm -Uvh aMule-X.X.X-1.iX86-X.rpm'' (replace X with the right 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 07:45, 17 July 2004

Part "A" describes manual compilation from a tarball, part "B" rpm installation!

A) wxGTK - wxBase - libcrypto - aMule manual compilation


WARNING: Make sure you have no wx installation. If you already have wx installed, check How to uninstall wxWidgets before starting a new installation. If after all, you still have problems, check if wx is installed twice, since that's a common compilation and runtime problem too.

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).

  • 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


  • compile wxGTK ->
    • tar -zxvf wxGTK-2.4.2.tar.gz
      • cd wxGTK-2.4.2
      • ./configure --prefix=/usr --disable-gtk2 --with-gtk && make
  • as root:
    • make install
    • ldconfig


  • compile libcrypto ->
    • tar xvjf crypto-5.1.tar.bz2
    • cd crypto-5.1
    • make
If you have problems compiling with older gcc versions, it can be due to stray DOS newlines in some files. Invoke
file * | grep CRLF | while read file rest; do dos2unix ${file%:}; done
to convert them to UNIX newlines (bash syntax).
  • as root:
    • make install && ldconfig


  • 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


B) wxGTK - wxBase - libcrypto - aMule rpms</b>


  • 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


  • install wxGTK ->
    • as root:
      • rpm -Uvh wxGTK-2.4.2-1.i386.rpm wxGTK-devel-2.4.2-1.i386.rpm
      • ldconfig


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