Difference between revisions of "Compilation Installation"

From AMule Project FAQ
Jump to: navigation, search
m (=Step 1: wxGTK= - (wiki-syntax: ' ))
m
Line 16: Line 16:
  
 
*Download [[wxWidgets|wxGTK]] ->
 
*Download [[wxWidgets|wxGTK]] ->
**[ftp://biolpc22.york.ac.uk/pub/2.6.2/wxGTK-2.6.2.tar.gz wxGTK-2.6.2.tar.gz]
+
**[http://prdownloads.sourceforge.net/wxwindows/wxGTK-2.6.3.tar.bz2 wxGTK-2.6.3.tar.bz2]
 +
**[ftp://biolpc22.york.ac.uk/pub/2.6.3/wxWidgets-2.6.3-Patch-2.tar.gz wxWidgets-2.6.3-Patch-2.tar.gz]
  
 
*Compile [[wxWidgets|wxGTK]]
 
*Compile [[wxWidgets|wxGTK]]
**''tar -zxvf wxGTK-2.6.2.tar.gz''
+
**''tar -jxvf wxGTK-2.6.3.tar.bz2''
**''cd wxGTK-2.6.2''
+
**''tar -zxvf wxWidgets-2.6.3-Patch-2.tar.gz''
**To avoid crashes at startup when linked against [http://www.gtk.org GTK]2, save this [http://cvs.wxwidgets.org/viewcvs.cgi/*checkout*/wxWidgets/src/common/intl.cpp?rev=1.166.2.1 file] as ''intl.cpp'' in your ''wxGTK-2.6.2/src/common'' directory (replace the original one)
+
**''mv src wxGTK-2.6.3''
 +
**''cd wxGTK-2.6.3''
 
**''Linked against [http://www.gtk.org GTK]2: ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise && make
 
**''Linked against [http://www.gtk.org GTK]2: ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise && make
 
*As '''root''':
 
*As '''root''':
Line 51: Line 53:
  
 
*Download [[wxWidgets|wxGTK]] for your [http://www.kernel.org Linux] distribution ->
 
*Download [[wxWidgets|wxGTK]] for your [http://www.kernel.org Linux] distribution ->
**[http://www.amule.org/files/files.php?cat=12 wxGTK-2.6.1]
+
**[http://www.amule.org/files/files.php?cat=12 wxGTK-2.6.3]
  
 
*Install [[wxWidgets|wxGTK]] ->
 
*Install [[wxWidgets|wxGTK]] ->
 
**As '''root''':
 
**As '''root''':
***''rpm -Uvh wxGTK-2.6.1-X.rpm'' (replace X with the right name..)
+
***''rpm -Uvh wxGTK-2.6.3-X.rpm'' (replace X with the right name..)
 
***''ldconfig''
 
***''ldconfig''
  

Revision as of 02:17, 8 April 2006

English | Français | Nederlands | Português | Deutsch | Russian

Manual Installation

To install aMule you can either install it from scratch, as described in Compiling From Sources, or use RPMs, as described in the Installing using RPMs section. Using RPMs will speed things up a lot but is not available by default with all linux distributions.

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 continue have problems, 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 -jxvf wxGTK-2.6.3.tar.bz2
    • tar -zxvf wxWidgets-2.6.3-Patch-2.tar.gz
    • mv src wxGTK-2.6.3
    • cd wxGTK-2.6.3
    • 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 a regular user from console by typing -> amule

Installing using RPMs

Step 1: wxGTK

  • Install wxGTK ->
    • As root:
      • rpm -Uvh wxGTK-2.6.3-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 a regular user from your console by typing -> amule