<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://test.amule.szerverem.hu/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://test.amule.szerverem.hu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Arichy</id>
		<title>AMule Project FAQ - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://test.amule.szerverem.hu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Arichy"/>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Special:Contributions/Arichy"/>
		<updated>2026-04-06T08:23:54Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/IPFilter</id>
		<title>IPFilter</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/IPFilter"/>
				<updated>2011-04-15T17:51:15Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: /* IP Filter - URLs for Auto-update at startup */ http://emulepawcio.sourceforge.net/ipfilter.dat is _not_ updated monthly&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[IP_Filter-de|Deutsch]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
The [[IP address|IP]] Filter blocks traffic from/to IPs and ranges of [[IP address|IP]]s with our [[client]]. This means that those [[IP address|IP]]s which get blocked will not be able neither to upload to us nor to download from us.&lt;br /&gt;
&lt;br /&gt;
This filter is read from [[ipfilter.dat_file|''~/.aMule/ipfilter.dat'']] and ~/.aMule/ipfilter_static.dat. The content of these files describes the valid and blocked [[IP address|IP]] ranges.&lt;br /&gt;
&lt;br /&gt;
== [[ipfilter.dat file]] ==&lt;br /&gt;
The information and details about the [[ipfilter.dat file]] can be found [[ipfilter.dat file|here]].&lt;br /&gt;
&lt;br /&gt;
== Using the [[IP address|IP]] Filter in [[aMule]] ==&lt;br /&gt;
The ''Access level'' of the [[IP address|IP]] filter is selected in [[aMule]] through &amp;quot;Preferences&amp;quot; -&amp;gt; &amp;quot;Security&amp;quot; -&amp;gt; &amp;quot;IP Filtering&amp;quot; -&amp;gt; &amp;quot;Filtering level&amp;quot; (in [[aMule]] versions up to 2.0.0-rc8 it is under &amp;quot;Server&amp;quot;, instead of &amp;quot;Security&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' [[aMule]]'s ''ipfilter.dat'' file is 100% compatible with [[eMule]]'s.&lt;br /&gt;
&lt;br /&gt;
== Using an external [[ipfilter.dat file]] ==&lt;br /&gt;
&lt;br /&gt;
aMule by default uses ~/.aMule/ipfilter.dat for IP filtering. If you enable 'Use system-wide ipfilter.dat if available', it will look for a /usr/share/amule/ipfilter.dat file if loading the local ipfilter.dat fails.  This system-wide ipfilter.dat can then be kept up-to-date by another method &amp;lt;!-- such as.... --&amp;gt; so that aMule doesn't have to download a large file every time it starts.&lt;br /&gt;
&lt;br /&gt;
The above paths assume a linux-like system.&lt;br /&gt;
&lt;br /&gt;
This option is located through &amp;quot;Preferences&amp;quot; -&amp;gt; &amp;quot;Security&amp;quot; and is disabled by default in the latest stable 2.2.2 build.&lt;br /&gt;
&lt;br /&gt;
== [[IP address|IP]] Filter sources ==&lt;br /&gt;
=== IP Filter - URLs for Auto-update at startup ===&lt;br /&gt;
Insert the URL under &amp;quot;Preferences&amp;quot; -&amp;gt; &amp;quot;Security&amp;quot; -&amp;gt; &amp;quot;IP filtering&amp;quot; -&amp;gt; &amp;quot;URL:&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* http://emulepawcio.sourceforge.net/ipfilter.dat (on 2011-04-15 this file was from 2010-08-23)&lt;br /&gt;
&lt;br /&gt;
These lists do not seem to work:&lt;br /&gt;
&lt;br /&gt;
* http://www.bluetack.co.uk/modules.php?name=FAQ&amp;amp;myfaq=yes&amp;amp;id_cat=6&amp;amp;categories=Blacklists+FAQ ([http://www.bluetack.co.uk/modules.php?name=FAQ&amp;amp;myfaq=yes&amp;amp;id_cat=6&amp;amp;categories=Blacklists+FAQ Bluetack's normal ipfilter.dat])&lt;br /&gt;
&lt;br /&gt;
* http://www.bluetack.co.uk/modules.php?name=FAQ&amp;amp;myfaq=yes&amp;amp;id_cat=6&amp;amp;categories=Blacklists+FAQ ([http://www.bluetack.co.uk/modules.php?name=FAQ&amp;amp;myfaq=yes&amp;amp;id_cat=6&amp;amp;categories=Blacklists+FAQ Bluetack's paranoid ipfilter.dat])&lt;br /&gt;
&lt;br /&gt;
=== IP Filter sites ===&lt;br /&gt;
You can insert the lists from these sites either manually or with a script. Or you can use seperate [[IP address|IP]]-blocking software like Protowall from [http://bluetack.co.uk Bluetack], PeerGuardian from [http://phoenixlabs.org Phoenixlabs] or [http://moblock.berlios.de moblock].&lt;br /&gt;
&lt;br /&gt;
The [http://test.blocklist.org lists] from [http://phoenixlabs.org Phoenixlabs] (formerly known as Methlabs) are still under development. They use the lists from [http://bluetack.co.uk Bluetack] instead.&lt;br /&gt;
&lt;br /&gt;
http://bluetack.co.uk/config/sources.txt (If you follow this link then download the lists as *.gz or *.zip instead of *.txt in order to save Bluetack's bandwith!)&lt;br /&gt;
&lt;br /&gt;
http://emulepawcio.sourceforge.net/nieuwe_site/ipfilter_fake_list.html&lt;br /&gt;
&lt;br /&gt;
== Hard coded [[IP address|IP]] filter in [[aMule]] ==&lt;br /&gt;
[[aMule]] has some ranges of [[IP address|IP]]s which it filters by default following the [http://www.rfc-editor.org/rfc/rfc3330.txt RFC 3330] document. These ranges are:&lt;br /&gt;
&lt;br /&gt;
         Address Block             Present Use                       Reference&lt;br /&gt;
         ----------------------------------------------------------------------&lt;br /&gt;
         &amp;quot;0.0.0.0/8&amp;quot;,       // &amp;quot;This&amp;quot; Network                 [RFC1700, page 4]&lt;br /&gt;
         &amp;quot;10.0.0.0/8&amp;quot;,      // Private-Use Networks                   [RFC1918]&lt;br /&gt;
         &amp;quot;14.0.0.0/8&amp;quot;,      // Public-Data Networks         [RFC1700, page 181]&lt;br /&gt;
         &amp;quot;24.0.0.0/8&amp;quot;,      // Cable Television Networks                    --&lt;br /&gt;
         &amp;quot;39.0.0.0/8&amp;quot;,      // Reserved but subject&lt;br /&gt;
                            //    to allocation                       [RFC1797]&lt;br /&gt;
         &amp;quot;127.0.0.0/8&amp;quot;,     // Loopback                       [RFC1700, page 5]&lt;br /&gt;
         &amp;quot;128.0.0.0/16&amp;quot;,    // Reserved but subject&lt;br /&gt;
                            //    to allocation                             --&lt;br /&gt;
         &amp;quot;169.254.0.0/16&amp;quot;,  // Link Local                                   --&lt;br /&gt;
         &amp;quot;172.16.0.0/12&amp;quot;,   // Private-Use Networks                   [RFC1918]&lt;br /&gt;
         &amp;quot;191.255.0.0/16&amp;quot;,  // Reserved but subject&lt;br /&gt;
                            //    to allocation                             --&lt;br /&gt;
         &amp;quot;192.0.0.0/24&amp;quot;,    // Reserved but subject&lt;br /&gt;
                            //    to allocation                             --&lt;br /&gt;
         &amp;quot;192.0.2.0/24&amp;quot;,    // Test-Net&lt;br /&gt;
         &amp;quot;192.88.99.0/24&amp;quot;,  // 6to4 Relay Anycast                     [RFC3068]&lt;br /&gt;
         &amp;quot;192.168.0.0/16&amp;quot;,  // Private-Use Networks                   [RFC1918]&lt;br /&gt;
         &amp;quot;198.18.0.0/15&amp;quot;,   // Network Interconnect&lt;br /&gt;
                            //    Device Benchmark Testing            [RFC2544]&lt;br /&gt;
         &amp;quot;223.255.255.0/24&amp;quot;,// Reserved but subject&lt;br /&gt;
                            //    to allocation                             --&lt;br /&gt;
         &amp;quot;224.0.0.0/4&amp;quot;,     // Multicast                              [RFC3171]&lt;br /&gt;
         &amp;quot;240.0.0.0/4&amp;quot;      // Reserved for Future Use        [RFC1700, page 4]&lt;br /&gt;
&lt;br /&gt;
However, you can un-filter these ranges of [http://www.faqs.org/rfcs/rfc791.html IP]s by unchecking &amp;quot;Preferences&amp;quot;-&amp;gt;&amp;quot;Security&amp;quot;-&amp;gt;&amp;quot;IP-filtering&amp;quot;-&amp;gt;&amp;quot;Always filter bad IPs&amp;quot; (on [[aMule]] versions up to 2.0.0-rc8, this option can be found in &amp;quot;Preferences&amp;quot;-&amp;gt;&amp;quot;Server&amp;quot;-&amp;gt;&amp;quot;Always filter bad IPs&amp;quot;).&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac-de</id>
		<title>HowTo compile on Mac-de</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac-de"/>
				<updated>2007-08-25T10:42:45Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[[HowTo_compile_on_Mac|English]] | '''Deutsch'''&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wie bekomme und installiere ich [[aMule]] auf [http://www.apple.com/macosx/ Apple Mac OS X]?&lt;br /&gt;
&lt;br /&gt;
# Du kannst einfach das fertige Programm herunterladen (Bin&amp;amp;auml;rveröffentlichung) oder&lt;br /&gt;
# Du kompilierst es aus einer [[aMule CVS|CVS-Entwicklerversion]].&lt;br /&gt;
&lt;br /&gt;
''Die Vorg&amp;amp;auml;ngerversion dieser Anleitung, die [[aMule]] 2.0.0rc8 und fr&amp;amp;uuml;her behandelt findest du  [[HowTo_compile_on_Mac_v200rc8|hier (englisch)]].''&lt;br /&gt;
&lt;br /&gt;
== Bin&amp;amp;auml;rver&amp;amp;ouml;ffentlichungen ==&lt;br /&gt;
&lt;br /&gt;
Wenn du dich nicht mit kompilieren und installieren all dieser Werkzeuge und Quelltexte rum&amp;amp;auml;rgern willst, nimm einfach eins der vorkompilierten [[aMule]] Programme. Die offizielle Ver&amp;amp;ouml;ffentlichung wird als 'stabil' betrachtet, aber alle jetzigen und sp&amp;amp;auml;teren Versionen werden aus den Quelltexten kompiliert, um mehr Menschen die M&amp;amp;ouml;glichkeit zu geben neue Funktionen zu testen.&lt;br /&gt;
&lt;br /&gt;
# Aktuelle stabile Ver&amp;amp;ouml;ffentlichung: [http://www.amule.org/files/files.php?cat=30 aMule-2.1.3-Mac]&lt;br /&gt;
# Ab und zu kompilierte Entwicklerversion: [http://forum.amule.org/index.php?topic=5051.0 aMule-Forum]&lt;br /&gt;
&lt;br /&gt;
Um das heruntergeladene Programm zu installieren musst du einfach das aMule in einem Ordner deiner Wahl (z.B. ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
Um aMule zu starten, doppelklicke auf das Programmsymbol.&lt;br /&gt;
&lt;br /&gt;
'''Bemerkung:''' Du solltest auch den [[Mac specific usage]] Artikel lesen.&lt;br /&gt;
&lt;br /&gt;
== Aus den Quelltexten kompilieren ==&lt;br /&gt;
&lt;br /&gt;
Kompilieren erlaubt dir aussagekr&amp;amp;auml;ftigere Fehlermeldungen zu verfassen, da du die [[aMule CVS|CVS-Entwicklerversion]] des jeweiligen Tages verwenden kannst.&lt;br /&gt;
&lt;br /&gt;
Zum kompilieren von [[aMule]] aus den Quelltexten ben&amp;amp;ouml;tigst du ein paar Entwicklungswerkzeuge, die [[wxWidgets]] Bibliothek und den [http://dl.amule.org aMule-Quelltext].&lt;br /&gt;
&lt;br /&gt;
=== Quelltexte und Entwicklungswerkzeuge beziehen ===&lt;br /&gt;
&lt;br /&gt;
==== [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] ist [http://www.apple.com Apple]'s Entwicklungsumgebung. Diese brauchen wir f&amp;amp;uuml;r den [http://gcc.gnu.org GCC] compiler.&lt;br /&gt;
Du brauchst mindestens Version 2.1 von Xcode, eine aktuellere Version ist vorzuziehen. Xcode ist auf der OS X 10.4 DVD enthalten, aber fr&amp;amp;uuml;he Versionen von 10.4 wurden mit Xcode 2.0 ausgeliefert, also musst du &amp;amp;uuml;berpr&amp;amp;uuml;fen ob die Version auf der DVD mindestens 2.1 ist.&lt;br /&gt;
M&amp;amp;ouml;glicherweise hast du [http://developer.apple.com/tools/xcode Xcode] auf CD/DVD, z.B. ist es auf der [http://www.apple.com/macosx/ OS X] 10.4 DVD.&lt;br /&gt;
&lt;br /&gt;
Andernfalls kannst du es von [http://www.apple.com/de/ Apple] herunterladen, du musst aber vorher einen kostenlosen Entwickler-Account registrieren. Dieses gibt es nur auf Englisch&lt;br /&gt;
&lt;br /&gt;
# XCode herunterladen von http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== [http://www.macports.org MacPorts] (fr&amp;amp;uuml;her bekannt als DarwinPorts) ====&lt;br /&gt;
&lt;br /&gt;
[http://www.macports.org MacPorts] ist ein freier Installer f&amp;amp;uuml;r freie Software die auf [http://macos.apple.com Mac OS X] portiert wurde. aMule ben&amp;amp;ouml;tigt einige dieser Programme um kompiliert werden zu k&amp;amp;ouml;nnen. Alternativ kannst du auch [http://fink.sourceforge.net Fink] benutzen um diese Werkzeuge zu installieren, oder die Installation komplett von Hand vornehmen.&lt;br /&gt;
&lt;br /&gt;
# Lade die aktuelle Version von [http://www.macports.org MacPorts] herunter&lt;br /&gt;
# Lese die [http://trac.macosforge.org/projects/macports/wiki MacPorts' Dokumentation] um zu erfahren wie man mit [http://www.macports.org MacPorts] Programme installieren kann.&lt;br /&gt;
&lt;br /&gt;
Die Werkzeuge die du installieren musst sind:&lt;br /&gt;
# automake&lt;br /&gt;
# flex&lt;br /&gt;
# gettext (Wird nur ben&amp;amp;ouml;tigt wenn du eine andere Sprache als Englisch verwenden willst)&lt;br /&gt;
# libpng&lt;br /&gt;
&lt;br /&gt;
==== [[wxWidgets|wxMac]] ====&lt;br /&gt;
&lt;br /&gt;
[[wxWidgets|wxMac]] ist die [http://macos.apple.com Mac OS X] Portierung der [[wxWidgets]] Bibliothek. Diese Bibliothek wird benutzt um [[aMule]] 'multi-platform' werden zu lassen.&lt;br /&gt;
&lt;br /&gt;
# Lade die Quelltexte herunter von: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac)&lt;br /&gt;
# Entpacke das Archiv (einfach darauf doppelklicken)&lt;br /&gt;
&lt;br /&gt;
Oder nimm die aktuelle [[wx-cvs|WX-Entwicklerversion]]. Achtung: [[wxMac]] [[wx-cvs|WX-CVS]] ist h&amp;amp;auml;fig in schlechtem Zustand (z.B. musst du die vswprintf Implementation die wx benutzt &amp;amp;auml;ndern, siehe [http://forum.amule.org/index.php?topic=9915.msg58058#msg58058 hier] f&amp;amp;uuml;r mehr Details).&lt;br /&gt;
&lt;br /&gt;
 bash: cd ~/Desktop&lt;br /&gt;
 bash: cvs -d :pserver:anoncvs@cvs.wxwidgets.org:/pack/cvsroots/wxwidgets login&lt;br /&gt;
 Note: password is 'anoncvs'&lt;br /&gt;
 bash: cvs -d :pserver:anoncvs@cvs.wxwidgets.org:/pack/cvsroots/wxwidgets checkout wxMac&lt;br /&gt;
&lt;br /&gt;
==== [http://www.amule.org aMule selbst] ====&lt;br /&gt;
&lt;br /&gt;
# Lade die aktuellste [[aMule CVS|CVS-Entwicklerversion]] herunter: [http://www.hirnriss.net/?area=cvs aMule CVS]&lt;br /&gt;
# Entpacke das Archiv (einfach darauf doppelklicken)&lt;br /&gt;
&lt;br /&gt;
=== Quelltexte kompilieren ===&lt;br /&gt;
&lt;br /&gt;
Paltziere das ''amule''-Verzeichnis und das ''wxMac''-Verzeichnis am selben Ort, z.B. auf dem Desktop (wenn du einen anderen Ort w&amp;amp;auml;hlst, achte darauf, dass der Pfad keine Leerzeichen enth&amp;amp;auml;lt, da es sonst zu &amp;quot;Datei nicht gefunden&amp;quot;-Fehlern bei [[wxMac]] kommen kann). &lt;br /&gt;
&lt;br /&gt;
==== [[wxMac]] Kompilieren====&lt;br /&gt;
&lt;br /&gt;
Dieser Schritt wird nur einmal ben&amp;amp;ouml;tigt, und muss f&amp;amp;uuml;r sp&amp;amp;auml;tere Versionen von [[aMule CVS]] nicht wiederholt werden.&lt;br /&gt;
&lt;br /&gt;
Alles nachfolgende geht davon aus, das du die Verzeichnisse auf dem Desktop platziert hast.&lt;br /&gt;
''cd'' in das ''wxMac'' Verzeichnis, ''configure'' und ''make'':&lt;br /&gt;
&lt;br /&gt;
 bash: cd ~/Desktop/wxMac-2.8.4/build&lt;br /&gt;
 bash: ../configure --disable-shared --enable-unicode --enable-debug --enable-debug_gdb&lt;br /&gt;
 bash: make&lt;br /&gt;
&lt;br /&gt;
'''Anmerkung:''' Der zweite Befehl oben sorgt daf&amp;amp;uuml;r, dass wxMac mit Debug-Informationen kompiliert wird. Diese Informationen erlauben es dir einen hilfreichen stacktrace zu f&amp;amp;uuml;r die [[aMule devs|aMule Entwickler]] zu erstellen, falls [[aMule]] abst&amp;amp;uuml;rzen sollte. Falls du keine Debugversion m&amp;amp;ouml;chtest, benutze &amp;quot;--disable-debug --disable-debug_gdb&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
'''Anmerkung:''' Falls du ein [http://en.wikipedia.org/wiki/Universal_binary Universal Binary] von aMule kompilieren willst (d.h. ein aMule Version die auf PowerPC und Intel basierenden Macs l&amp;amp;auml;uft), kannst du  &amp;quot;--enable-universal_binary&amp;quot; als Parameter an das Ende des zweiten Befehls anh&amp;amp;auml;ngen. Wenn du diesen Parameter wegl&amp;amp;auml;sst werden wxMac und aMule nur f&amp;amp;uuml;r deine Architektur kompiliert.&lt;br /&gt;
&lt;br /&gt;
'''Anmerkung:''' Der make Befehl kann bis zu 45 Minuten dauern, abh&amp;amp;auml;ngig von deinem Prozessor und den gew&amp;amp;auml;hlten Parametern.&lt;br /&gt;
&lt;br /&gt;
==== [[aMule]] kompilieren ====&lt;br /&gt;
&lt;br /&gt;
Jetzt ''cd'' in das ''amule''-Verzeichnis, ''./configure'' und ''make'':&lt;br /&gt;
&lt;br /&gt;
'''Anmerkung:''' Die 4 Zeilen f&amp;amp;uuml;r ''./configure'' kannst du in einem Rutsch kopieren.&lt;br /&gt;
&lt;br /&gt;
 bash: cd ~/Desktop/amule-cvs&lt;br /&gt;
 bash: ./configure --disable-systray --disable-gtk --enable-embedded_crypto    \&lt;br /&gt;
            --with-wx-config=../wxMac-2.8.4/build/wx-config    \&lt;br /&gt;
            --enable-cas --enable-webserver --enable-amulecmd    \&lt;br /&gt;
            --enable-debug --disable-optimize&lt;br /&gt;
&lt;br /&gt;
 bash: make&lt;br /&gt;
 bash: ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
'''Anmerkung:''' Wenn du aMule nicht mit Debuginformationen kompilieren willst (siehe oben) solltest du &amp;quot;--disable-debug --enable-optimize&amp;quot; im configure Schritt verwenden.&lt;br /&gt;
&lt;br /&gt;
'''Anmerkung:''' Um aMule als Universal Binary zu kompilieren (siehe oben) musst du folgendes an den configure Befehl anh&amp;amp;auml;ngen:&lt;br /&gt;
            --disable-dependency-tracking \&lt;br /&gt;
            CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk&amp;quot; \&lt;br /&gt;
            CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== [[aMule]] starten ====&lt;br /&gt;
Wenn das mac_packager Script fertig ist, kannst du das aMule Programm aus dem amule-cvs Verzeichnis &amp;amp;uuml;berall hin auf deiner Festplatte verschieben.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-05-01T08:38:42Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: algorith to see what developement packages are needed&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
See also general [[Compilation Installation]]&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Info: What aMule release needs what wxwidgets release?==&lt;br /&gt;
* Debian Etch includes aMule 2.1.3 and wxwidgets 2.6.3&lt;br /&gt;
&lt;br /&gt;
* aMule 2.1 needs wxwidgets 2.6. You cannot compile it with newer versions of wxwidgets.&lt;br /&gt;
* aMule 2.2 needs wxwidgets 2.8. You cannot compile it with older versions of wxwidgets.&lt;br /&gt;
&lt;br /&gt;
==What developement packages do I need for compiling?==&lt;br /&gt;
Hint: You don't need to read this if You use Debian Etch.&lt;br /&gt;
&lt;br /&gt;
To find out, what Debian developement packages You need to compile program ''p'', look if there is a package of ''p'' in Your Debian repository with &amp;lt;tt&amp;gt;apt-cache search ''p''&amp;lt;/tt&amp;gt;. If there is, type &amp;lt;tt&amp;gt;apt-cache showsrc ''packagename''&amp;lt;/tt&amp;gt;&lt;br /&gt;
In the output, ''Build-Depends:'' lists the developement packages that You need to compile the ''packagename'' source code. With some luck, also newer sources of program ''p'' can be compiled with these developement packages.&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How to uninstall wxWidgets]] and [[Check if wx is installed twice]])&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install flex bison gettext libgtk2.0-dev python-all-dev zlib1g-dev libjpeg62-dev libpng12-dev libtiff4-dev libgl-dev libglu-dev libesd0-dev libgnomeprintui2.2-dev python-central&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.wxwidgets.org/downloads/&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvzf wxgtk-''version''.tar.gz&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd wxGTK-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# ldconfig&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ = command executed with normal user account&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; = command executed with root account&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install autotools-dev quilt libglib2.0-dev zlib1g-dev libgd2-xpm-dev libreadline5-dev libcrypto++-dev&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current aMule stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.amule.org&amp;lt;/tt&amp;gt; (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvjf aMule-''version''.tar.bz2&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd aMule-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# To have a look what features of aMule You can enable or disable: &amp;lt;tt&amp;gt;$ ./configure --help&amp;lt;/tt&amp;gt;&lt;br /&gt;
# You should be right with &amp;lt;tt&amp;gt;$ ./configure --disable-debug --enable-optimize&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ = command executed with normal user account&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; = command executed with root account&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-04-28T13:49:30Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: =Info: What aMule release needs what wxwidgets release?= more info&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HowTo compile [[aMule]] in [[Debian]] or [http://www.ubuntulinux.org Ubuntu] by ''[[User:Jacobo221|Jacobo221]]'' and [http://www.gnu.org GNU] [http://www.kernel.org Linux] helpers&lt;br /&gt;
&lt;br /&gt;
Very special thanks to ''darknox'', ''Arathornz'', ''guest234'', ''parasito'', ''maya'' and ''klando'' for their tests!&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
See also general [[Compilation Installation]]&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Info: What aMule release needs what wxwidgets release?==&lt;br /&gt;
* Debian Etch includes aMule 2.1.3 and wxwidgets 2.6.3&lt;br /&gt;
&lt;br /&gt;
* aMule 2.1 needs wxwidgets 2.6. You cannot compile it with newer versions of wxwidgets.&lt;br /&gt;
* aMule 2.2 needs wxwidgets 2.8. You cannot compile it with older versions of wxwidgets.&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How to uninstall wxWidgets]] and [[Check if wx is installed twice]])&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install flex bison gettext libgtk2.0-dev python-all-dev zlib1g-dev libjpeg62-dev libpng12-dev libtiff4-dev libgl-dev libglu-dev libesd0-dev libgnomeprintui2.2-dev python-central&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.wxwidgets.org/downloads/&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvzf wxgtk-''version''.tar.gz&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd wxGTK-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# ldconfig&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ = command executed with normal user account&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; = command executed with root account&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install autotools-dev quilt libglib2.0-dev zlib1g-dev libgd2-xpm-dev libreadline5-dev libcrypto++-dev&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current aMule stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.amule.org&amp;lt;/tt&amp;gt; (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvjf aMule-''version''.tar.bz2&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd aMule-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# To have a look what features of aMule You can enable or disable: &amp;lt;tt&amp;gt;$ ./configure --help&amp;lt;/tt&amp;gt;&lt;br /&gt;
# You should be right with &amp;lt;tt&amp;gt;$ ./configure --disable-debug --enable-optimize&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ = command executed with normal user account&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; = command executed with root account&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-04-28T13:41:31Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: =Info: What aMule release needs what wxwidgets release?= Debian Etch includes wxwidgets 2.6&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HowTo compile [[aMule]] in [[Debian]] or [http://www.ubuntulinux.org Ubuntu] by ''[[User:Jacobo221|Jacobo221]]'' and [http://www.gnu.org GNU] [http://www.kernel.org Linux] helpers&lt;br /&gt;
&lt;br /&gt;
Very special thanks to ''darknox'', ''Arathornz'', ''guest234'', ''parasito'', ''maya'' and ''klando'' for their tests!&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
See also general [[Compilation Installation]]&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Info: What aMule release needs what wxwidgets release?==&lt;br /&gt;
* Debian Etch includes wxwidgets 2.6&lt;br /&gt;
&lt;br /&gt;
* aMule 2.1 needs wxwidgets 2.6. You cannot compile it with newer versions of wxwidgets.&lt;br /&gt;
* aMule 2.2 needs wxwidgets 2.8. You cannot compile it with older versions of wxwidgets.&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How to uninstall wxWidgets]] and [[Check if wx is installed twice]])&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install flex bison gettext libgtk2.0-dev python-all-dev zlib1g-dev libjpeg62-dev libpng12-dev libtiff4-dev libgl-dev libglu-dev libesd0-dev libgnomeprintui2.2-dev python-central&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.wxwidgets.org/downloads/&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvzf wxgtk-''version''.tar.gz&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd wxGTK-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# ldconfig&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ = command executed with normal user account&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; = command executed with root account&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install autotools-dev quilt libglib2.0-dev zlib1g-dev libgd2-xpm-dev libreadline5-dev libcrypto++-dev&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current aMule stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.amule.org&amp;lt;/tt&amp;gt; (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvjf aMule-''version''.tar.bz2&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd aMule-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# To have a look what features of aMule You can enable or disable: &amp;lt;tt&amp;gt;$ ./configure --help&amp;lt;/tt&amp;gt;&lt;br /&gt;
# You should be right with &amp;lt;tt&amp;gt;$ ./configure --disable-debug --enable-optimize&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ = command executed with normal user account&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; = command executed with root account&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-04-28T13:36:59Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: =Info: What aMule release needs what wxwidgets release?= more general&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HowTo compile [[aMule]] in [[Debian]] or [http://www.ubuntulinux.org Ubuntu] by ''[[User:Jacobo221|Jacobo221]]'' and [http://www.gnu.org GNU] [http://www.kernel.org Linux] helpers&lt;br /&gt;
&lt;br /&gt;
Very special thanks to ''darknox'', ''Arathornz'', ''guest234'', ''parasito'', ''maya'' and ''klando'' for their tests!&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
See also general [[Compilation Installation]]&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Info: What aMule release needs what wxwidgets release?==&lt;br /&gt;
* aMule 2.1 needs wxwidgets 2.6. You cannot compile it with newer versions of wxwidgets.&lt;br /&gt;
* aMule 2.2 needs wxwidgets 2.8. You cannot compile it with older versions of wxwidgets.&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How to uninstall wxWidgets]] and [[Check if wx is installed twice]])&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install flex bison gettext libgtk2.0-dev python-all-dev zlib1g-dev libjpeg62-dev libpng12-dev libtiff4-dev libgl-dev libglu-dev libesd0-dev libgnomeprintui2.2-dev python-central&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.wxwidgets.org/downloads/&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvzf wxgtk-''version''.tar.gz&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd wxGTK-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# ldconfig&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ = command executed with normal user account&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; = command executed with root account&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install autotools-dev quilt libglib2.0-dev zlib1g-dev libgd2-xpm-dev libreadline5-dev libcrypto++-dev&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current aMule stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.amule.org&amp;lt;/tt&amp;gt; (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvjf aMule-''version''.tar.bz2&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd aMule-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# To have a look what features of aMule You can enable or disable: &amp;lt;tt&amp;gt;$ ./configure --help&amp;lt;/tt&amp;gt;&lt;br /&gt;
# You should be right with &amp;lt;tt&amp;gt;$ ./configure --disable-debug --enable-optimize&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ = command executed with normal user account&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; = command executed with root account&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-04-28T13:32:49Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: Info: What aMule release needs what wxwidgets release?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HowTo compile [[aMule]] in [[Debian]] or [http://www.ubuntulinux.org Ubuntu] by ''[[User:Jacobo221|Jacobo221]]'' and [http://www.gnu.org GNU] [http://www.kernel.org Linux] helpers&lt;br /&gt;
&lt;br /&gt;
Very special thanks to ''darknox'', ''Arathornz'', ''guest234'', ''parasito'', ''maya'' and ''klando'' for their tests!&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
See also general [[Compilation Installation]]&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Info: What aMule release needs what wxwidgets release?==&lt;br /&gt;
* aMule 2.1 needs wxwidgets 2.6. You cannot compile it with wxwidgets 2.8.&lt;br /&gt;
* aMule 2.2 needs wxwidgets 2.8. You cannot compile it with wxwidgets 2.6.&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How to uninstall wxWidgets]] and [[Check if wx is installed twice]])&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install flex bison gettext libgtk2.0-dev python-all-dev zlib1g-dev libjpeg62-dev libpng12-dev libtiff4-dev libgl-dev libglu-dev libesd0-dev libgnomeprintui2.2-dev python-central&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.wxwidgets.org/downloads/&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvzf wxgtk-''version''.tar.gz&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd wxGTK-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# ldconfig&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ = command executed with normal user account&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; = command executed with root account&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install autotools-dev quilt libglib2.0-dev zlib1g-dev libgd2-xpm-dev libreadline5-dev libcrypto++-dev&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current aMule stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.amule.org&amp;lt;/tt&amp;gt; (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvjf aMule-''version''.tar.bz2&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd aMule-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# To have a look what features of aMule You can enable or disable: &amp;lt;tt&amp;gt;$ ./configure --help&amp;lt;/tt&amp;gt;&lt;br /&gt;
# You should be right with &amp;lt;tt&amp;gt;$ ./configure --disable-debug --enable-optimize&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ = command executed with normal user account&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; = command executed with root account&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-04-28T13:23:18Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: =Compiling and installing aMule= legende&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HowTo compile [[aMule]] in [[Debian]] or [http://www.ubuntulinux.org Ubuntu] by ''[[User:Jacobo221|Jacobo221]]'' and [http://www.gnu.org GNU] [http://www.kernel.org Linux] helpers&lt;br /&gt;
&lt;br /&gt;
Very special thanks to ''darknox'', ''Arathornz'', ''guest234'', ''parasito'', ''maya'' and ''klando'' for their tests!&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
See also general [[Compilation Installation]]&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How to uninstall wxWidgets]] and [[Check if wx is installed twice]])&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install flex bison gettext libgtk2.0-dev python-all-dev zlib1g-dev libjpeg62-dev libpng12-dev libtiff4-dev libgl-dev libglu-dev libesd0-dev libgnomeprintui2.2-dev python-central&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.wxwidgets.org/downloads/&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvzf wxgtk-''version''.tar.gz&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd wxGTK-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# ldconfig&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ = command executed with normal user account&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; = command executed with root account&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install autotools-dev quilt libglib2.0-dev zlib1g-dev libgd2-xpm-dev libreadline5-dev libcrypto++-dev&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current aMule stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.amule.org&amp;lt;/tt&amp;gt; (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvjf aMule-''version''.tar.bz2&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd aMule-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# To have a look what features of aMule You can enable or disable: &amp;lt;tt&amp;gt;$ ./configure --help&amp;lt;/tt&amp;gt;&lt;br /&gt;
# You should be right with &amp;lt;tt&amp;gt;$ ./configure --disable-debug --enable-optimize&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ = command executed with normal user account&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; = command executed with root account&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-04-28T13:21:32Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: =Preparing: Compiling and installing wxwidgets= legende&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HowTo compile [[aMule]] in [[Debian]] or [http://www.ubuntulinux.org Ubuntu] by ''[[User:Jacobo221|Jacobo221]]'' and [http://www.gnu.org GNU] [http://www.kernel.org Linux] helpers&lt;br /&gt;
&lt;br /&gt;
Very special thanks to ''darknox'', ''Arathornz'', ''guest234'', ''parasito'', ''maya'' and ''klando'' for their tests!&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
See also general [[Compilation Installation]]&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How to uninstall wxWidgets]] and [[Check if wx is installed twice]])&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install flex bison gettext libgtk2.0-dev python-all-dev zlib1g-dev libjpeg62-dev libpng12-dev libtiff4-dev libgl-dev libglu-dev libesd0-dev libgnomeprintui2.2-dev python-central&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.wxwidgets.org/downloads/&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvzf wxgtk-''version''.tar.gz&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd wxGTK-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# ldconfig&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ = command executed with normal user account&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; = command executed with root account&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install autotools-dev quilt libglib2.0-dev zlib1g-dev libgd2-xpm-dev libreadline5-dev libcrypto++-dev&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current aMule stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.amule.org&amp;lt;/tt&amp;gt; (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvjf aMule-''version''.tar.bz2&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd aMule-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# To have a look what features of aMule You can enable or disable: &amp;lt;tt&amp;gt;$ ./configure --help&amp;lt;/tt&amp;gt;&lt;br /&gt;
# You should be right with &amp;lt;tt&amp;gt;$ ./configure --disable-debug --enable-optimize&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-04-28T10:57:24Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: =Compiling and installing aMule=&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HowTo compile [[aMule]] in [[Debian]] or [http://www.ubuntulinux.org Ubuntu] by ''[[User:Jacobo221|Jacobo221]]'' and [http://www.gnu.org GNU] [http://www.kernel.org Linux] helpers&lt;br /&gt;
&lt;br /&gt;
Very special thanks to ''darknox'', ''Arathornz'', ''guest234'', ''parasito'', ''maya'' and ''klando'' for their tests!&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
See also general [[Compilation Installation]]&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How to uninstall wxWidgets]] and [[Check if wx is installed twice]])&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install flex bison gettext libgtk2.0-dev python-all-dev zlib1g-dev libjpeg62-dev libpng12-dev libtiff4-dev libgl-dev libglu-dev libesd0-dev libgnomeprintui2.2-dev python-central&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.wxwidgets.org/downloads/&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvzf wxgtk-''version''.tar.gz&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd wxGTK-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# ldconfig&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install autotools-dev quilt libglib2.0-dev zlib1g-dev libgd2-xpm-dev libreadline5-dev libcrypto++-dev&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current aMule stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.amule.org&amp;lt;/tt&amp;gt; (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvjf aMule-''version''.tar.bz2&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd aMule-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# To have a look what features of aMule You can enable or disable: &amp;lt;tt&amp;gt;$ ./configure --help&amp;lt;/tt&amp;gt;&lt;br /&gt;
# You should be right with &amp;lt;tt&amp;gt;$ ./configure --disable-debug --enable-optimize&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-04-28T10:54:27Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: =Preparing: Compiling and installing wxwidgets= tt-font for code&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HowTo compile [[aMule]] in [[Debian]] or [http://www.ubuntulinux.org Ubuntu] by ''[[User:Jacobo221|Jacobo221]]'' and [http://www.gnu.org GNU] [http://www.kernel.org Linux] helpers&lt;br /&gt;
&lt;br /&gt;
Very special thanks to ''darknox'', ''Arathornz'', ''guest234'', ''parasito'', ''maya'' and ''klando'' for their tests!&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
See also general [[Compilation Installation]]&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How to uninstall wxWidgets]] and [[Check if wx is installed twice]])&lt;br /&gt;
# On Debian Etch: &amp;lt;tt&amp;gt;# apt-get install flex bison gettext libgtk2.0-dev python-all-dev zlib1g-dev libjpeg62-dev libpng12-dev libtiff4-dev libgl-dev libglu-dev libesd0-dev libgnomeprintui2.2-dev python-central&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from &amp;lt;tt&amp;gt;http://www.wxwidgets.org/downloads/&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ tar xvzf wxgtk-''version''.tar.gz&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ cd wxGTK-''version''&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;$ make&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# make install&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;# ldconfig&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# On Debian Etch: # apt-get install autotools-dev quilt libglib2.0-dev zlib1g-dev libgd2-xpm-dev libreadline5-dev libcrypto++-dev&lt;br /&gt;
# Download current aMule stable release source code tar ball from http://www.amule.org (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# $ tar xvjf aMule-&amp;lt;version&amp;gt;.tar.bz2&lt;br /&gt;
# $ cd aMule-&amp;lt;version&amp;gt;&lt;br /&gt;
# To have a look what features of aMule You can enable or disable: $ ./configure --help&lt;br /&gt;
# You should be right with $ ./configure --disable-debug --enable-optimize&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-04-28T10:50:46Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: =Preparing: Compiling and installing wxwidgets= ldconfig added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HowTo compile [[aMule]] in [[Debian]] or [http://www.ubuntulinux.org Ubuntu] by ''[[User:Jacobo221|Jacobo221]]'' and [http://www.gnu.org GNU] [http://www.kernel.org Linux] helpers&lt;br /&gt;
&lt;br /&gt;
Very special thanks to ''darknox'', ''Arathornz'', ''guest234'', ''parasito'', ''maya'' and ''klando'' for their tests!&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
See also general [[Compilation Installation]]&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How to uninstall wxWidgets]] and [[Check if wx is installed twice]])&lt;br /&gt;
# On Debian Etch: # apt-get install flex bison gettext libgtk2.0-dev python-all-dev zlib1g-dev libjpeg62-dev libpng12-dev libtiff4-dev libgl-dev libglu-dev libesd0-dev libgnomeprintui2.2-dev python-central&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from http://www.wxwidgets.org/downloads/&lt;br /&gt;
# $ tar xvzf wxgtk-&amp;lt;version&amp;gt;.tar.gz&lt;br /&gt;
# $ cd wxGTK-&amp;lt;version&amp;gt;&lt;br /&gt;
# $ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
# # ldconfig&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# On Debian Etch: # apt-get install autotools-dev quilt libglib2.0-dev zlib1g-dev libgd2-xpm-dev libreadline5-dev libcrypto++-dev&lt;br /&gt;
# Download current aMule stable release source code tar ball from http://www.amule.org (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# $ tar xvjf aMule-&amp;lt;version&amp;gt;.tar.bz2&lt;br /&gt;
# $ cd aMule-&amp;lt;version&amp;gt;&lt;br /&gt;
# To have a look what features of aMule You can enable or disable: $ ./configure --help&lt;br /&gt;
# You should be right with $ ./configure --disable-debug --enable-optimize&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-04-28T10:50:02Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: See also general Compilation Installation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HowTo compile [[aMule]] in [[Debian]] or [http://www.ubuntulinux.org Ubuntu] by ''[[User:Jacobo221|Jacobo221]]'' and [http://www.gnu.org GNU] [http://www.kernel.org Linux] helpers&lt;br /&gt;
&lt;br /&gt;
Very special thanks to ''darknox'', ''Arathornz'', ''guest234'', ''parasito'', ''maya'' and ''klando'' for their tests!&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
See also general [[Compilation Installation]]&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How to uninstall wxWidgets]] and [[Check if wx is installed twice]])&lt;br /&gt;
# On Debian Etch: # apt-get install flex bison gettext libgtk2.0-dev python-all-dev zlib1g-dev libjpeg62-dev libpng12-dev libtiff4-dev libgl-dev libglu-dev libesd0-dev libgnomeprintui2.2-dev python-central&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from http://www.wxwidgets.org/downloads/&lt;br /&gt;
# $ tar xvzf wxgtk-&amp;lt;version&amp;gt;.tar.gz&lt;br /&gt;
# $ cd wxGTK-&amp;lt;version&amp;gt;&lt;br /&gt;
# $ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# On Debian Etch: # apt-get install autotools-dev quilt libglib2.0-dev zlib1g-dev libgd2-xpm-dev libreadline5-dev libcrypto++-dev&lt;br /&gt;
# Download current aMule stable release source code tar ball from http://www.amule.org (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# $ tar xvjf aMule-&amp;lt;version&amp;gt;.tar.bz2&lt;br /&gt;
# $ cd aMule-&amp;lt;version&amp;gt;&lt;br /&gt;
# To have a look what features of aMule You can enable or disable: $ ./configure --help&lt;br /&gt;
# You should be right with $ ./configure --disable-debug --enable-optimize&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-04-28T10:29:33Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: =Compiling and installing aMule= needed libraries added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HowTo compile [[aMule]] in [[Debian]] or [http://www.ubuntulinux.org Ubuntu] by ''[[User:Jacobo221|Jacobo221]]'' and [http://www.gnu.org GNU] [http://www.kernel.org Linux] helpers&lt;br /&gt;
&lt;br /&gt;
Very special thanks to ''darknox'', ''Arathornz'', ''guest234'', ''parasito'', ''maya'' and ''klando'' for their tests!&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How to uninstall wxWidgets]] and [[Check if wx is installed twice]])&lt;br /&gt;
# On Debian Etch: # apt-get install flex bison gettext libgtk2.0-dev python-all-dev zlib1g-dev libjpeg62-dev libpng12-dev libtiff4-dev libgl-dev libglu-dev libesd0-dev libgnomeprintui2.2-dev python-central&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from http://www.wxwidgets.org/downloads/&lt;br /&gt;
# $ tar xvzf wxgtk-&amp;lt;version&amp;gt;.tar.gz&lt;br /&gt;
# $ cd wxGTK-&amp;lt;version&amp;gt;&lt;br /&gt;
# $ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# On Debian Etch: # apt-get install autotools-dev quilt libglib2.0-dev zlib1g-dev libgd2-xpm-dev libreadline5-dev libcrypto++-dev&lt;br /&gt;
# Download current aMule stable release source code tar ball from http://www.amule.org (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# $ tar xvjf aMule-&amp;lt;version&amp;gt;.tar.bz2&lt;br /&gt;
# $ cd aMule-&amp;lt;version&amp;gt;&lt;br /&gt;
# To have a look what features of aMule You can enable or disable: $ ./configure --help&lt;br /&gt;
# You should be right with $ ./configure --disable-debug --enable-optimize&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-04-28T10:27:22Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: =Preparing: Compiling and installing wxwidgets= need libraries added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HowTo compile [[aMule]] in [[Debian]] or [http://www.ubuntulinux.org Ubuntu] by ''[[User:Jacobo221|Jacobo221]]'' and [http://www.gnu.org GNU] [http://www.kernel.org Linux] helpers&lt;br /&gt;
&lt;br /&gt;
Very special thanks to ''darknox'', ''Arathornz'', ''guest234'', ''parasito'', ''maya'' and ''klando'' for their tests!&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How to uninstall wxWidgets]] and [[Check if wx is installed twice]])&lt;br /&gt;
# On Debian Etch: # apt-get install flex bison gettext libgtk2.0-dev python-all-dev zlib1g-dev libjpeg62-dev libpng12-dev libtiff4-dev libgl-dev libglu-dev libesd0-dev libgnomeprintui2.2-dev python-central&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from http://www.wxwidgets.org/downloads/&lt;br /&gt;
# $ tar xvzf wxgtk-&amp;lt;version&amp;gt;.tar.gz&lt;br /&gt;
# $ cd wxGTK-&amp;lt;version&amp;gt;&lt;br /&gt;
# $ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# Download current aMule stable release source code tar ball from http://www.amule.org (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# $ tar xvjf aMule-&amp;lt;version&amp;gt;.tar.bz2&lt;br /&gt;
# $ cd aMule-&amp;lt;version&amp;gt;&lt;br /&gt;
# To have a look what features of aMule You can enable or disable: $ ./configure --help&lt;br /&gt;
# You should be right with $ ./configure --disable-debug --enable-optimize&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-04-28T10:18:22Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: =Compiling and installing aMule= little correcture&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HowTo compile [[aMule]] in [[Debian]] or [http://www.ubuntulinux.org Ubuntu] by ''[[User:Jacobo221|Jacobo221]]'' and [http://www.gnu.org GNU] [http://www.kernel.org Linux] helpers&lt;br /&gt;
&lt;br /&gt;
Very special thanks to ''darknox'', ''Arathornz'', ''guest234'', ''parasito'', ''maya'' and ''klando'' for their tests!&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How to uninstall wxWidgets]] and [[Check if wx is installed twice]])&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from http://www.wxwidgets.org/downloads/&lt;br /&gt;
# $ tar xvzf wxgtk-&amp;lt;version&amp;gt;.tar.gz&lt;br /&gt;
# $ cd wxGTK-&amp;lt;version&amp;gt;&lt;br /&gt;
# $ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# Download current aMule stable release source code tar ball from http://www.amule.org (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# $ tar xvjf aMule-&amp;lt;version&amp;gt;.tar.bz2&lt;br /&gt;
# $ cd aMule-&amp;lt;version&amp;gt;&lt;br /&gt;
# To have a look what features of aMule You can enable or disable: $ ./configure --help&lt;br /&gt;
# You should be right with $ ./configure --disable-debug --enable-optimize&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-04-28T10:15:00Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: =Preparing: Compiling and installing wxwidgets=  typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HowTo compile [[aMule]] in [[Debian]] or [http://www.ubuntulinux.org Ubuntu] by ''[[User:Jacobo221|Jacobo221]]'' and [http://www.gnu.org GNU] [http://www.kernel.org Linux] helpers&lt;br /&gt;
&lt;br /&gt;
Very special thanks to ''darknox'', ''Arathornz'', ''guest234'', ''parasito'', ''maya'' and ''klando'' for their tests!&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How to uninstall wxWidgets]] and [[Check if wx is installed twice]])&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from http://www.wxwidgets.org/downloads/&lt;br /&gt;
# $ tar xvzf wxgtk-&amp;lt;version&amp;gt;.tar.gz&lt;br /&gt;
# $ cd wxGTK-&amp;lt;version&amp;gt;&lt;br /&gt;
# $ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# Download current aMule stable release source code tar ball from http://www.amule.org (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# $ tar xvjf aMule-&amp;lt;version&amp;gt;.tar.bz2&lt;br /&gt;
# $ cd aMule-&amp;lt;version&amp;gt;&lt;br /&gt;
# $ ./configure --help (to have a look what features of aMule You can enable or disable)&lt;br /&gt;
# $ You should be right with ./configure --disable-debug --enable-optimize&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-04-28T10:13:29Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: =Preparing: Compiling and installing wxwidgets=&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HowTo compile [[aMule]] in [[Debian]] or [http://www.ubuntulinux.org Ubuntu] by ''[[User:Jacobo221|Jacobo221]]'' and [http://www.gnu.org GNU] [http://www.kernel.org Linux] helpers&lt;br /&gt;
&lt;br /&gt;
Very special thanks to ''darknox'', ''Arathornz'', ''guest234'', ''parasito'', ''maya'' and ''klando'' for their tests!&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How to uninstall wxWidgets]] and [[Check if wx is installed twice]])&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from http://www.wxwidgets.org/downloads/&lt;br /&gt;
# $ tar xvzf &amp;lt;wxgtk-&amp;lt;version&amp;gt;.tar.gz&amp;gt;&lt;br /&gt;
# $ cd wxGTK-&amp;lt;version&amp;gt;&lt;br /&gt;
# $ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# Download current aMule stable release source code tar ball from http://www.amule.org (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# $ tar xvjf aMule-&amp;lt;version&amp;gt;.tar.bz2&lt;br /&gt;
# $ cd aMule-&amp;lt;version&amp;gt;&lt;br /&gt;
# $ ./configure --help (to have a look what features of aMule You can enable or disable)&lt;br /&gt;
# $ You should be right with ./configure --disable-debug --enable-optimize&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu</id>
		<title>HowTo Compile In Debian/Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Debian/Ubuntu"/>
				<updated>2007-04-28T10:12:42Z</updated>
		
		<summary type="html">&lt;p&gt;Arichy: more general and easy algorithm, better structure&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Debian-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HowTo compile [[aMule]] in [[Debian]] or [http://www.ubuntulinux.org Ubuntu] by ''[[User:Jacobo221|Jacobo221]]'' and [http://www.gnu.org GNU] [http://www.kernel.org Linux] helpers&lt;br /&gt;
&lt;br /&gt;
Very special thanks to ''darknox'', ''Arathornz'', ''guest234'', ''parasito'', ''maya'' and ''klando'' for their tests!&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This howto will also work for [http://www.ubuntulinux.com Ubuntu Linux].&lt;br /&gt;
&lt;br /&gt;
== Are you sure you want to compile? ==&lt;br /&gt;
&lt;br /&gt;
If not, (which is pretty common) decide if you want the [[aMule]] stable release or the [[aMule CVS]] release.&lt;br /&gt;
&lt;br /&gt;
=== [[aMule]] stable release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian 3.1 Sarge only!'''&lt;br /&gt;
&lt;br /&gt;
You can just install latest stable [[aMule]] version through [http://packages.debian.org deb]s adding the following lines into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://amule-debian.dyndns.org/ debian/&lt;br /&gt;
&lt;br /&gt;
Now run &amp;lt;code&amp;gt;apt-get update &amp;amp;&amp;amp; apt-get install amule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Packages in this repository:&lt;br /&gt;
*amule&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-gui-utils (alc, wxcas)&lt;br /&gt;
*amule-console-utils (amuleweb, alcc, cas)&lt;br /&gt;
*amule-utils (metapackage for amule-gui-utils and amule-console-utils)&lt;br /&gt;
&lt;br /&gt;
'''NOTES:''' &lt;br /&gt;
* If [[aMule]] exits with error message complaining about being unable to open libbfd-2.15.so this usually means you are NOT running Debian Sarge. Don't start making symlinks or doing other workarounds, they can quite easily bork your whole system.&lt;br /&gt;
&lt;br /&gt;
* http://dude.gemil.de is deprecated. http://amule-debian.dyndns.org is (for now) just a redirect, but this might change in the future (if the repository has to move due to traffic limitations).&lt;br /&gt;
&lt;br /&gt;
=== [[aMule CVS]] release ===&lt;br /&gt;
&lt;br /&gt;
'''These packages are for Debian testing aka Etch only!'''&lt;br /&gt;
&lt;br /&gt;
You can also get the latest [[aMule CVS]] through debs adding the following line into your ''/etc/apt/sources.list'' file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.vollstreckernet.de/debian/ testing amule&lt;br /&gt;
&lt;br /&gt;
packages are GPG sighned, so follow this steps:&lt;br /&gt;
 ''gpg --keyserver wwwkeys.eu.pgp.net --recv 50D0AE60''&lt;br /&gt;
 ''gpg -a --export 50D0AE60 &amp;gt; /tmp/key''&lt;br /&gt;
 ''apt-key add /tmp/key'' (requires superuser privileges)&lt;br /&gt;
&lt;br /&gt;
Now run ''apt-get update &amp;amp;&amp;amp; apt-get install amule''&lt;br /&gt;
&lt;br /&gt;
You might also want to take a look at the other available [[aMule]] utilities:&lt;br /&gt;
&lt;br /&gt;
'''[[aMule CVS]]'''&lt;br /&gt;
*amule&lt;br /&gt;
*amule-utils&lt;br /&gt;
*amule-utils-gui&lt;br /&gt;
*amule-ed2k&lt;br /&gt;
*amule-cas&lt;br /&gt;
*amule-wxcas&lt;br /&gt;
*amule-xas&lt;br /&gt;
*amule-common&lt;br /&gt;
*amule-theme-default&lt;br /&gt;
*amule-theme-php-default&lt;br /&gt;
*amule-theme-chicane&lt;br /&gt;
*amuleweb&lt;br /&gt;
*amule-remote-gui&lt;br /&gt;
*amule-daemon&lt;br /&gt;
*amule-alc&lt;br /&gt;
*amule-alcc&lt;br /&gt;
*amule-cmd&lt;br /&gt;
*amule-i18n-ar&lt;br /&gt;
*amule-i18n-bg&lt;br /&gt;
*amule-i18n-ca&lt;br /&gt;
*amule-i18n-da&lt;br /&gt;
*amule-i18n-de&lt;br /&gt;
*amule-i18n-en-gb&lt;br /&gt;
*amule-i18n-en-us&lt;br /&gt;
*amule-i18n-es&lt;br /&gt;
*amule-i18n-es-mx&lt;br /&gt;
*amule-i18n-et-ee&lt;br /&gt;
*amule-i18n-eu&lt;br /&gt;
*amule-i18n-fi&lt;br /&gt;
*amule-i18n-fr&lt;br /&gt;
*amule-i18n-gl&lt;br /&gt;
*amule-i18n-hr&lt;br /&gt;
*amule-i18n-hu&lt;br /&gt;
*amule-i18n-it-ch&lt;br /&gt;
*amule-i18n-it&lt;br /&gt;
*amule-i18n-ko-kr&lt;br /&gt;
*amule-i18n-nl&lt;br /&gt;
*amule-i18n-pl&lt;br /&gt;
*amule-i18n-pt-br&lt;br /&gt;
*amule-i18n-pt-pt&lt;br /&gt;
*amule-i18n-ru&lt;br /&gt;
*amule-i18n-sl&lt;br /&gt;
*amule-i18n-zh-cn&lt;br /&gt;
*amule-i18n-zh-tw&lt;br /&gt;
&lt;br /&gt;
For example, if you think [[aMule]]'s [[Webserver|Web interface]] rocks and you want to have it too, enter this line after the one above:&lt;br /&gt;
&lt;br /&gt;
For [[aMule CVS]]: ''apt-get install amuleweb''&lt;br /&gt;
&lt;br /&gt;
For [[aMule]] stable: ''apt-get install amule-console-utils''&lt;br /&gt;
&lt;br /&gt;
If you still want to compile [[aMule]] instead of just installing a binary, keep reading...&lt;br /&gt;
&lt;br /&gt;
==Preparing: Compiling and installing wxwidgets==&lt;br /&gt;
This algorithm works for Debian Sarge and Etch.&lt;br /&gt;
&lt;br /&gt;
To compile aMule, You need to have a current version of [[wxWidgets]] installed. To achieve that:&lt;br /&gt;
# Uninstall every possibly previously installed wxwidgets stuff (see [[How_to_uninstall_wxWidgets]] and [[Check_if_wx_is_installed_twice]])&lt;br /&gt;
# Download current wxwidgets wxGTK stable release source code tar ball from http://www.wxwidgets.org/downloads/&lt;br /&gt;
# $ tar xvzf &amp;lt;wxgtk-&amp;lt;version&amp;gt;.tar.gz&amp;gt;&lt;br /&gt;
# $ cd wxGTK-&amp;lt;version&amp;gt;&lt;br /&gt;
# $ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
&lt;br /&gt;
==Compiling and installing aMule==&lt;br /&gt;
Now that You have installed current wxGTK, go on to compile aMule:&lt;br /&gt;
# Download current aMule stable release source code tar ball from http://www.amule.org (note: aMule 2.1.3 can only be compiled with wxwidgets 2.6. If You have wxwidgets 2.8 installed, You have to use a newer version of aMule (if there is no newer release, use aMule SVN).&lt;br /&gt;
# $ tar xvjf aMule-&amp;lt;version&amp;gt;.tar.bz2&lt;br /&gt;
# $ cd aMule-&amp;lt;version&amp;gt;&lt;br /&gt;
# $ ./configure --help (to have a look what features of aMule You can enable or disable)&lt;br /&gt;
# $ You should be right with ./configure --disable-debug --enable-optimize&lt;br /&gt;
# $ make&lt;br /&gt;
# # make install&lt;br /&gt;
&lt;br /&gt;
That's it! Now You can start aMule with commando &amp;quot;amule&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==  Compiling on Debian 3.0 aka Woody ==&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Have in mind that this HowTo was done having in mind aMule 2.0.0 or greater in [[Debian]] 3.0 (Woody/Sarge/Sid).&lt;br /&gt;
&lt;br /&gt;
This HowTo is based on using the apt-get package installer tool, which means you'll have to be able to get super-user (root) access. Also, apt-get requires a perfect packet dependencies installed system. If you usually use apt-get for installing any application, skip this and go to the next section. If you rarely use apt-get but, instead, use dpkg, you can;&lt;br /&gt;
&lt;br /&gt;
A) (Recommended) Solve all the dependencies problems on your system. This can be done by taking a look at the &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; output and installing/removing/updating the packages it mentions depending on what's required. This option is the recommended since it will not only ensure your aMule compilation will be most surely correct, but it will also make your system the most stable it can possibly be and from now on you'll be able to use apt-get to not only make easier installations, but also to easily upgrade your system.&lt;br /&gt;
&lt;br /&gt;
B) Force apt-get to ignore the dependencies problems using the -f or --fix-broken switches (just one of them, since they're exactly the same, so that'd be, for example, &amp;lt;code&amp;gt;&amp;quot;apt-get install -f ...&amp;quot;&amp;lt;/code&amp;gt;). This option may cause a corrupt installation of some packages which may cause the apps not to work. Also have in mind that using this switch in a system with dependencies problems may cause the system to completely break if the package being installed is a base package (although this is not the case).&lt;br /&gt;
&lt;br /&gt;
C) Follow this instructions but, instead of using &amp;lt;code&amp;gt;&amp;quot;apt-get install foo&amp;quot;&amp;lt;/code&amp;gt;, use &amp;lt;code&amp;gt;&amp;quot;dpkg -i foo&amp;quot;&amp;lt;/code&amp;gt; where foo is the package to install. Remember the packages must be already on the system when installing packages with dpkg. Remember also to download any &amp;quot;Depends&amp;quot; package since it most-surely will be necessary for successfully compiling [[aMule]]. Avoid using whichever of the following dpkg switches: --force-all  --force-depends-version --force-depends --force-conflicts&lt;br /&gt;
&lt;br /&gt;
If you usually install applications from source, read deltaHF's [[Compilation_Installation|&amp;quot;aMule compilation / installation HowTo&amp;quot;]] since your system might not be complying the Debian aMule package dependencies although &amp;lt;code&amp;gt;&amp;quot;dpkg -C&amp;quot;&amp;lt;/code&amp;gt; shows no errors.&lt;br /&gt;
&lt;br /&gt;
== The easiest: Preparing the system ==&lt;br /&gt;
&lt;br /&gt;
Once you decided to use apt-get, you must make sure you'll be downloading the latest versions of the packages (aMule team has discovered bugs in some deb packages that would make aMule impossible to compile on Debian without compiling some other libraries too. This bugs have been mostly fixed in those affected debian packages, so it is very important to be sure to have the packages up to date). This is done by issuing:&lt;br /&gt;
&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
'''''Note 1:''' You must be root user to do this. Log in as root or &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or use &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;. NB: &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; must be specified on both apt-get commands, that is:''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; is not a base command, so it may not be installed on your system, although it most probably will. Be aware that following this HowTo entirely as root may bring some problems later such as being unable to delete certain files as a normal user, so please only use root priviledges when necessary.''&lt;br /&gt;
&lt;br /&gt;
'''''Note 2:''' Woody users (that is, people stuck in the stable Debian 3.0 branch) will be updated to Sarge doing apt-get dist-upgrade.&lt;br /&gt;
&lt;br /&gt;
'''''Note 3:''' Sid users (that is, people holding the cutting-edge unstable Debian 3.0 branch) could suffer problems from packages not completely implemented or with broken dependencies (both are normal issues in the unstable branch). It is very important to keep this in mind since a compiler (g++) will be installed so it could also be broken and, with it, most applications compiled with it (once upgraded, of course). If a package was broken, to downgrade you can use the --force-downgrade switch with dpkg.''&lt;br /&gt;
&lt;br /&gt;
If for whatever reason you think this is too much of a complication, you can just wait a few days until the aMule binary version comes out for your architecture (that is, a .deb file).&lt;br /&gt;
&lt;br /&gt;
== The fastest: Installing the necessary packages ==&lt;br /&gt;
Remember you need to be root to install applications using apt-get, since apt-get installs system-wide applications. So, log in as root, use &amp;quot;su&amp;quot; or add &amp;quot;sudo&amp;quot; before every command shown here.&lt;br /&gt;
&lt;br /&gt;
The following are the packages which must be installed:&lt;br /&gt;
&lt;br /&gt;
1) Install the latest stable g++ compiler and the C++ Standard Library&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
&lt;br /&gt;
the required libraries for compiling [[aMule]] (wxbase is not really a requiered packet to compile aMule but, unless you know what you're doing, be sure you install it. I won't show in this this guide how to force aMule's compilation without wxbase):&lt;br /&gt;
&lt;br /&gt;
 apt-get install libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use &amp;lt;code&amp;gt;apt-get build-dep amule&amp;lt;/code&amp;gt; to get all the required depencies for compilation. Anyway, this last method is not sure to work, since it will depend on the latest version on the Debian repository and later versions or CVS versions might have different dependencies.&lt;br /&gt;
And the required utilities for compiling [[aMule]]:&lt;br /&gt;
&lt;br /&gt;
  apt-get install gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 5:''' This can all be done in a single command line, which might be more handy for users using &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt; to gain root priviledges:''&lt;br /&gt;
&lt;br /&gt;
 apt-get install g++ libwxbase2.4-dev libcurl3-dev libgtk1.2-dev libwxgtk2.4-dev gettext make&lt;br /&gt;
&lt;br /&gt;
'''''Note 6:''' From aMule 2.0.0-rc1 to aMule 2.0.0-rc5 (inclusive) the package ''libcrypto++-dev'' was necessary for compiling aMule, so if you are compiling any of such versions, apt-get libcrypto++-dev too.&lt;br /&gt;
&lt;br /&gt;
Also, you might be interested in installing libgd2-noxpm-dev if you plan to compile CAS. It is not a required library for compiling CAS, this library is only used by CAS for creating images (since v2.0.0-rc3) on the current aMule status (by running &amp;lt;code&amp;gt;cas -o&amp;lt;/code&amp;gt;). If you plan to use this feature of CAS, you need to install LibGD2. Anyway, CAS will compile perfectly well even if LibGD2 isn't installed, since it detects, on compilation time, if this library is installed.''&lt;br /&gt;
&lt;br /&gt;
2) Download the latest released [[aMule]] source code from [http://www.amule.org/files/files.php?cat=6 here] (or look [[AMule_CVS|here]] for an up-to-date link).&lt;br /&gt;
&lt;br /&gt;
'''''Note 7:''' From now on, I will suppose we are installing aMule 2.0.0-rc3''&lt;br /&gt;
&lt;br /&gt;
3) Fix Crypto++ Library 5.1 if using it.&lt;br /&gt;
&lt;br /&gt;
From [[aMule]] 2.0.0-rc1 to a aMule 2.0.0-rc5 (inclusive) this library is required because [[aMule]] is now supporting SecureIdent (remember, since aMule 2.0.0-rc6, libcrypto++ is optional and not needed by default), but the [[Libcrypto|Crypto++]] [[Debian]] package has had lots of compiling bugs and still has one (although the rest have been fixed after aMule team's reports). Remember you should have update and dist-upgraded apt-get before installing any [[Debian]] package in this HowTo, otherwise, you could be installing (or already have installed) a buggy Crypto++ package and this fix will not suit your needs. To fix the latest [[Libcrypto|crypto++]] [[Debian]] package only a symbolic link is needed:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h&lt;br /&gt;
&lt;br /&gt;
''If you still can't compile crypto++, try compiling it after running the following command:''&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/include/crypto++ /usr/include/cryptopp&lt;br /&gt;
&lt;br /&gt;
'''''Note 8:''' Since this link needs write permissions in /usr/lib, super-user (root) priviledges are needed. Again, this can be done easily with &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;.''&lt;br /&gt;
&lt;br /&gt;
=== Using [[wxWidgets]] 2.6 ===&lt;br /&gt;
&lt;br /&gt;
[[Debian|Etch]] and [[Debian|Sid]] users can use wxWidgets 2.6 instead of wxWidgets 2.4 (Woody and Sarge users, forget about it. Go straight to the next chapter of this article).&lt;br /&gt;
&lt;br /&gt;
To use wxWidgets 2.6 instead of 2.4, just replace in all the above commands the terms ''libwxbase2.4-dev'' and ''libwxgtk2.4-dev'' with ''libwxbase2.6-dev'' and libwxgtk2.6-dev'' respectively.&lt;br /&gt;
&lt;br /&gt;
Whether or not you should use wx 2.6 insetad of wx 2.4 is up to you. It has both advantages and disadvantages. Anyway, in most cases, you will be grateful to use wx 2.6, so it is recommended.&lt;br /&gt;
&lt;br /&gt;
== The hardest: Compiling [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
4) Extract the sources. The following will create a folder on your user's home directory where it will extract the sources with the -C switch into it (the following command understands that [[aMule]]'s sources are on the current directory):&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/aMule-compilation/ &amp;amp;&amp;amp; tar xzfv aMule-2.0.0rc3.tar.gz -C ~/aMule-compilation/ &amp;amp;&amp;amp; cd ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
'''''Note 9:''' Remember I'm supposing you are extracting [[aMule]] 2.0.0-rc3. Change the file name if it doesn't correspond to the actual packed source code filename.''&lt;br /&gt;
&lt;br /&gt;
5) Compile [[aMule]]! The following command will actually switch to the directory containing [[aMule]] 2.0.0rc3 and compile it:&lt;br /&gt;
&lt;br /&gt;
 cd ~/aMule-compilation/aMule-2.0.0rc3/ &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
'''''Note 10:''' Please take a look at the [[configure|configure article]].''&lt;br /&gt;
&lt;br /&gt;
'''''Note 11:''' You should check the output of&lt;br /&gt;
 ./configure --help | more&lt;br /&gt;
to see if there is any configure switch which might be of your interest, such as --disable-debug --enable-optimise or --bindir= ''&lt;br /&gt;
&lt;br /&gt;
'''''Note 12:''' if you get an error message, while compiling, similar to: &amp;quot;In file included from /usr/include/wx/***:***, [...] /usr/include/wx/******:***: internal compiler error: Segmentation fault&amp;quot;, then you most probably have problems with wxWidgets. Try with''&lt;br /&gt;
&lt;br /&gt;
 apt-get install --reinstall wxwin2.4-headers libwxbase2.4 libwxgtk2.4-dev&lt;br /&gt;
&lt;br /&gt;
''which will reinstall wxWidgets and will most probably fix the compilation error.''&lt;br /&gt;
&lt;br /&gt;
== Meeting satisfaction: Installing aMule! ==&lt;br /&gt;
&lt;br /&gt;
8) What's left? Install aMule (remember you must be root, so log in as root or use &amp;lt;code&amp;gt;&amp;quot;su&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;sudo&amp;quot;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you can remove the sources so you free up space in your hard disk by running:&lt;br /&gt;
&lt;br /&gt;
 rm -rf ~/aMule-compilation/&lt;br /&gt;
&lt;br /&gt;
== The end: Final checks ==&lt;br /&gt;
&lt;br /&gt;
If you have sometime installed aMule from the Debian packages (no matter if the package came from http://gunnm.org/~soda ), you will have aMule binaries installed in /usr/bin. But &amp;lt;code&amp;gt;&amp;quot;make install&amp;quot;&amp;lt;/code&amp;gt; installs binnaries in /usr/local/bin (unless --prefix= is set in configure). This leads us to the point that when typing &amp;quot;amule&amp;quot; anyone of the two installed aMule versions might be invoked (which one is executed will depend on the $PATH environment variable. You can check it by typing &amp;lt;code&amp;gt;&amp;quot;type amule&amp;quot;&amp;lt;/code&amp;gt;). The walk around is very easy: remove the aMule installed through [[Debian]] package. You can do this with the command &amp;quot;apt-get remove amule&amp;quot; (do not use &amp;lt;code&amp;gt;&amp;quot;apt-get remove --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings) or with &amp;lt;code&amp;gt;&amp;quot;dpkg --remove amule&amp;quot;&amp;lt;/code&amp;gt; (again, never ever use &amp;lt;code&amp;gt;&amp;quot;dpkg --purge&amp;quot;&amp;lt;/code&amp;gt; or you might loose your [[aMule]] settings). apt-get will remove aMule-utils if you have them installed (only available as a separate package in Sid, in Sarge and Woody aMule utils are included in the base aMule package) while dpkg will leave aMule-utils installed on the system (which, in general, is a bad idea).&lt;br /&gt;
&lt;br /&gt;
Also, if you installed xmule sometime or you are planing to install it, have in mind that the [[ed2k command]] exists both in [[aMule]] and [[xMule]]. You might want to run `type ed2k` to see which [[ed2k command]] will be executed and rename the other so you make sure it's never executed by mistake.&lt;br /&gt;
&lt;br /&gt;
== You're done... ==&lt;br /&gt;
&lt;br /&gt;
That's it! Your own compiled [[aMule]] is installed on your system and ready to go.&lt;br /&gt;
&lt;br /&gt;
To run [[aMule]], just type &amp;lt;code&amp;gt;&amp;quot;amule&amp;quot;&amp;lt;/code&amp;gt;. You can check if everything worked by typing &amp;lt;code&amp;gt;&amp;quot;amule -v&amp;quot;&amp;lt;/code&amp;gt; and check if the displayed version corresponds with the one you were compiling/installing.&lt;br /&gt;
&lt;br /&gt;
If this HowTo didn't help, you have a rare problem on your system ;-) Take a look at http://www.amule.org ([http://www.amule.org/amule aMule Forums] at http://forum.amule.org ) or visit us in #amule on irc.freenode.net and (don't doubt) we'll try to do our best to help you.&lt;br /&gt;
&lt;br /&gt;
== Final notes ==&lt;br /&gt;
&lt;br /&gt;
If you are in one of those rare cases when you wish to compile [[aMule]] statically, install also ''libtiff4-dev'' (through ''apt-get install libtiff4-dev''). Anyway, this is '''NOT''' recommended and, in fact, will probably not do any better or even, not work at all.&lt;/div&gt;</summary>
		<author><name>Arichy</name></author>	</entry>

	</feed>