Skip to end of metadata
Go to start of metadata

aMule stands for all plateforme mule

aMule is an eMule-like client for the eD2k and Kademlia networks, supporting multiple platforms.

More infos http://wiki.amule.org/index.php/AMule.

this guide was (almost entirely) inspired by http://wiki.amule.org/index.php/HowTo_compile_on_Solaris.

Installing dependencies

First we need a build environnement:

# pkg install developer/gcc-3@3.4.3-0.151.1.2 developer/gnu developer/gnu-binutils developer/gnome/gettext

 

wxGTK:

Get the latest wxGTK package from http://www.wxwidgets.org and compile it:

$ wget http://prdownloads.sourceforge.net/wxwindows/wxGTK-2.8.12.tar.gz

$ tar xf wxGTK-2.8.12.tar.gz && cd wxGTK-2.8.12/

$ ./configure --enable-unicode --with-gtk=2 && make

$ sudo make install

cryptopp:

Get the cryptopp library 5.5.2 from http://www.cryptopp.com/ . Do not use cryptopp 5.6.0, it will make aMule segfault when compiled (no idea why)

$ mkdir cryptopp && cd cryptopp && wget http://www.cryptopp.com/cryptopp552.zip

$ unzip cryptopp552.zip

$ make

$ sudo cp libcryptopp.a /usr/local/lib

$ sudo mkdir /usr/local/include/cryptopp && sudo cp *.h to /usr/local/include/cryptopp

GeoIP:

$ wget http://www.maxmind.com/download/geoip/api/c/GeoIP.tar.gz

$ tar xf GeoIP.tar.gz && cd GeoIP/

$ ./configure && make

$ sudo make install

gd:

$ wget https://bitbucket.org/pierrejoye/gd-libgd/get/GD_2_0_33.tar.gz

$ tar xf GD_2_0_33.tar.gz && cd pierrejoye-gd-libgd-5551f61978e3/src

$ ./configure && make

$ sudo make install

libUPnP:

The latest libUPnP source code from http://pupnp.sourceforge.net/ (libupnp-1.6.16 at time of writing) did not work for me, I used libupnp-1.6.6 instead, maybe other(s) realease(s) should work, I didn't try.

Hint 1: this configure line worked for me: ./configure CFLAGS="-DSPARC_SOLARIS" --disable-samples
Hint 2: I needed to add this at the beginning of the file upnp/src/api/upnpapi.c, along with the other #include lines:

#include <sys/sockio.h>

...make && sudo make install

and finally:

set some env variables:

CFLAGS="-std=gnu99"
PATH=/usr/local/bin:/usr/gnu/bin:/opt/csw/bin:/usr/sfw/bin:/usr/bin:/usr/sbin
CPPFLAGS='-I/usr/local/include -I/opt/gnu/include -I/opt/csw/include -I/usr/sfw/include -I/usr/include' LDFLAGS='-L/usr/local/lib -R/usr/local/lib -L/opt/csw/lib -R/opt/csw/lib -L/usr/sfw/lib -R/usr/sfw/lib -L/usr/gnu/lib -R/usr/gnu/lib' LD_LIBRARY_PATH=/usr/local/lib:/usr/gnu/lib:/opt/csw/lib:/usr/sfw/lib:/usr/lib export PATH CFLAGS CPPFLAGS LDFLAGS LD_LIBRARY_PATH

 

download amule at http://www.amule.org/files/download.php?file=192

$ tar xf aMule-2.3.1.tar.bz2 && cd aMule-2.3.1/

$ ./configure --enable-webserver --enable-amule-daemon --enable-amulecmd --enable-amule-gui --enable-cas --enable-wxcas --enable-alc --enable-alcc --with-wx-config=/usr/local/bin/wx-config --with-gdlib-config=/usr/local/bin/gdlib-config --with-libupnp-prefix=/usr/local --enable-geoip --with-geoip-lib=/usr/local/lib --with-geoip-headers=/usr/local/include --disable-embedded-crypto --with-crypto-prefix=/usr/local/ --enable-optimize --disable-debug

$ make

and if lucky: sudo make install

 

  • No labels