Difference between revisions of "Compilation Installation"

From AMule Project FAQ
Jump to: navigation, search
(tar -zxvf to untar a tar.gz file)
(21 intermediate revisions by 9 users not shown)
Line 1: Line 1:
 
<center>
 
<center>
'''English''' | [[Compilation_Installation-fr|Français]] | [[Compilation_Installation-nl|Nederlands]] | [[Compilation_Installation-br|Português]] | [[Compilation_Installation-de|Deutsch]] | [[Compilation_Installation-ru|Russian]] |
+
[[Compilation_Installation|English]] |  
 +
[[Compilation_Installation-de|Deutsch]] |  
 +
[[Compilation_Installation-es|Espa&ntilde;ol]] |  
 +
[[Compilation_Installation-fr|Fran&ccedil;ais]] |  
 
[[Compilation_Installation-it|Italiano]] |  
 
[[Compilation_Installation-it|Italiano]] |  
[[Compilation_Installation-es|Español]]
+
[[Compilation_Installation-nl|Nederlands]] |
 
+
[[Compilation_Installation-pl|Polish]] |
 +
[[Compilation_Installation-br|Português]] |
 +
[[Compilation_Installation-ru|Russian]]
 
</center>
 
</center>
  
 +
== 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|check if wx is installed twice]], since that's a common compilation and runtime problem.
  
== Installation Manuelle ==
+
There are different versions of the wxWidgets for different platforms. wxGTK is used for Linux, Solaris and BSD, wxMSW for Windows and wxMac for Mac OS X. Here we'll explain the compilation using wxGTK, but it differs only slightly for other toolkits.
  
Pour installer aMule vous pouvez soit l'installer à partir de zéro, comme décrit dans '''Compiler à partir des sources''' soit utiliser les RPM comme décrit dans la section '''Installer en utilisant les RPM''', ce qui peut grandement accélérer les choses.
+
Please see the specific articles for more detailed instructions.
 +
*[[HowTo_compile_on_Mac|Compile aMule on Mac]]
 +
*[[HowTo compile on Win32|Compile aMule on Windows]]
  
== Compiler à partir des sources ==
+
=== Step 1: [[wxWidgets]] ===
 +
*Download [[wxWidgets]]: [http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.10.tar.gz wxWidgets-2.8.10.tar.gz]
  
 +
*Compile [[wxWidgets]]
 +
**''tar -zxvf wxWidgets-2.8.10.tar.gz''
 +
**''cd wxWidgets-2.8.10''
 +
**''Linked against [http://www.gtk.org GTK]2: ./configure --enable-unicode --enable-optimise
 +
**''make''
  
'''ATTENTION''' Soyez sûr de n'avoir '''aucune''' copie de [[wxWidgets]] d'installée. Si vous avez déjà un [[wxWidgets]] d'installé, allez voir [[How to uninstall wxWidgets]] avant de démarrer une nouvelle installation. Si vous avez encore des problèmes après ça, alors [[Check_if_wx_is_installed_twice|check if wx is installed twice]], parce que c'est un problème courant de compilation et de runtime.
+
*As '''root''' (in some distributions simply use "sudo" before):
 
+
'''REMARQUE :''' dans [[wxWidgets]] >= 2.5.1, [[wxBase]] n'est pas distribué comme un tarball séparé. Donc si vous comptez compiler [[wxWidgets|wxGTK]] 2.5.x, sautez la seconde étape (compilation de [[wxBase]]).
+
 
+
==== Etape 1 : [[wxWidgets|wxGTK]] ====
+
 
+
 
+
*téléchargez [[wxWidgets|wxGTK]] ->
+
**[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]
+
 
+
*compilez [[wxWidgets|wxGTK]] ->
+
**''tar -jxvf wxGTK-2.6.3.tar.bz2''
+
**''tar -C wxGTK-2.6.3 -xzvf wxWidgets-2.6.3-Patch-2.tar.gz ''
+
**''cd wxGTK-2.6.3''
+
**''./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise && make
+
*en tant que '''root''' :
+
 
**''make install''
 
**''make install''
**''ldconfig (ou /sbin/ldconfig selon votre configuration)''
+
**''ldconfig''
  
Note du 19/08/2007 concernant la compilation d'aMule sur SME Server :
+
==== Disable the GUI ====
lors des étapes ./configure, notez chaque warning ou chaque anomalie. Utilisez les pour installer depuis le gestionnaire du serveur, les paquets demandés. Si l'erreur concerne une version trop ancienne, compilez les sources de la version récente téléchargée depuis l'Internet par wget : depuis une console ssh, après avoir créé un user autre que root qui puisse se connecter par ssh (ou directement dans une console du serveur lui-même).
+
*To compile wxWidgets without a graphical User Interface, ''use the option --disable-gui''
Terminez en suivant l'étape 2 de ''HowTo Compile aMuled-fr''.
+
  
==== Etape 2 : [[wxBase]] ====
+
=== Step 2: [[aMule]] ===
 +
*Download the latest [[aMule SVN|source tarball]]: [http://amule.sourceforge.net/tarballs/tarballs.xml Download aMule]
  
*Since [[wxGTK]] 2.5.x, you don't need [[wxBase]] anymore unless you want to compile [[aMuled|aMule daemon]] without X.
+
*Compile [[aMule]] (please check the [[configure|configure article]]) ->
 
+
**''tar -zxvf aMule-X.X.X.tar.gz'' (replace X with the right version number..)
==== Etape 3 : [[libcrypto|Crypto++]] ====
+
**''cd aMule-X.X.X''
 
+
**''./configure --disable-debug --enable-optimize''
'''Remarque :''' Nécessaire seulement pour les versions de 2.0.0-rc1 à 2.0.0-rc5 (inclue).
+
 
+
*téléchargez [[libcrypto]]++ ->
+
**[http://download.berlios.de/amule/crypto-5.2.1.tar.bz2 crypto-5.2.1.tar.bz2]
+
 
+
*compilez [[libcrypto]]++ ->
+
**''tar xvjf crypto-5.2.1.tar.bz2''
+
**''cd crypto-5.2.1''
+
 
**''make''
 
**''make''
::Si vous rencontrez des problèmes en compilant avec de plus vieilles versions de [http://gcc.gnu.org gcc], cela peut être du à un retour à la ligne de [http://www.freedos.org DOS] perdu dans certains fichiers. Appellez
 
:::''file * | grep CRLF | while read file rest; do dos2unix ${file%:}; done''
 
::pour les convertir en retour à la ligne UNIX (syntaxe de [http://www.gnu.org/software/bash/bash.html bash]).
 
  
*en tant que '''root''':
+
*As '''root''' (in some distributions simply use "sudo" before):
:Sur les précédentes versions de [[libcrypto]]++, lancer ''make install'' devrais suffire. Depuis [[libcrypto]]++ 5.2 cela n'est plus possible. Donc faites ceci :
+
**''make install''
:*''cp libcryptopp.a /usr/lib/''
+
:*''mkdir /usr/include/cryptopp''
+
:*''cp *.h /usr/include/cryptopp/''
+
:*''ldconfig''
+
 
+
 
+
==== Etape 4 : [[aMule]] ====
+
 
+
*téléchargez la dernière version de [[aMule]] ->
+
**[https://developer.berlios.de/project/showfiles.php?group_id=1296 dernier aMule]
+
*compilez [[aMule]] ->
+
**''tar -zxvf aMule-X.X.X.tar.gz'' (remplacez X par le bon numéro de version...)
+
**''cd aMule-X.X.X''
+
**''./configure --disable-debug --enable-optimize && make''
+
*en tant que '''root''':
+
**''make install''  
+
*lancez [[aMule]] comme simple utilisateur à partir de votre console en tapant -> ''amule''
+
 
+
== Installer avec les RPM ==
+
 
+
==== Etape 1 : [[wxWidgets|wxGTK]] ====
+
 
+
*téléchargez [[wxWidgets|wxGTK]] et [[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]
+
 
+
* installez [[wxWidgets|wxGTK]] ->
+
**en tant que '''root''':
+
***''rpm -Uvh wxGTK-2.4.2-1.i386.rpm wxGTK-devel-2.4.2-1.i386.rpm''
+
***''ldconfig''
+
 
+
==== Etape 2 : [[wxBase]] ====
+
*téléchargez [[wxBase]] ->
+
**[http://download.berlios.de/amule/wxBase-2.4.2-1.i586.rpm wxBase-2.4.2-1.i586.rpm]
+
 
+
*installez [[wxBase]] ->
+
**en tant que '''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''
+
 
+
==== Etape 3 : [[libcrypto|Crypto++]] ====
+
 
+
'''Remarque :''' Nécessaire uniquement pour les versions de 2.0.0-rc1 à 2.0.0-rc5 (inclue).
+
 
+
*téléchargez [[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] et [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] et [http://download.berlios.de/amule/libcryptopp5-devel-5.1-2mdk.i586.rpm libcryptopp5-devel-5.1-2mdk.i586.rpm]
+
*en tant que '''root''':
+
**''rpm -Uvh le-packet-téléchargé-au-dessus.rpm''
+
 
+
 
+
==== Etape 4 : [[aMule]] ====
+
 
+
*téléchargez la dernière version de [[aMule]] ->
+
**[https://developer.berlios.de/project/showfiles.php?group_id=1296 latest aMule]
+
 
+
* installez [[aMule]] ->
+
**en tant que '''root''':
+
***''rpm -Uvh aMule-X.X.X-1.iX86-X.rpm'' (Remplacez X par le bon numéro de version)
+
  
* lancez [[aMule]] comme simple utilisateur en tapant dans votre console -> ''amule''
+
*Run [[aMule]] as a regular user from console by typing ''amule'', or run [[aMule]] through a link from the proper application menu of your operating system

Revision as of 15:56, 20 September 2009

English | Deutsch | Español | Français | Italiano | Nederlands | Polish | Português | Russian

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.

There are different versions of the wxWidgets for different platforms. wxGTK is used for Linux, Solaris and BSD, wxMSW for Windows and wxMac for Mac OS X. Here we'll explain the compilation using wxGTK, but it differs only slightly for other toolkits.

Please see the specific articles for more detailed instructions.

Step 1: wxWidgets

  • Compile wxWidgets
    • tar -zxvf wxWidgets-2.8.10.tar.gz
    • cd wxWidgets-2.8.10
    • Linked against GTK2: ./configure --enable-unicode --enable-optimise
    • make
  • As root (in some distributions simply use "sudo" before):
    • make install
    • ldconfig

Disable the GUI

  • To compile wxWidgets without a graphical User Interface, use the option --disable-gui

Step 2: 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 (in some distributions simply use "sudo" before):
    • make install
  • Run aMule as a regular user from console by typing amule, or run aMule through a link from the proper application menu of your operating system