Install-amule-freebsd
English | Русский
Install aMule 2.2.4 on FreeBSD 6.X, 7.X
Check that your /usr/ports is up-to-date, for example using portsnap:
portsnap fetch update
(you may need portsnap extract then portsnap update)
Upgrade the FreeBSD 6.X (not needed on FreeBSD 7.X) flex release (2.5.4) with the new one (2.5.35):
cd /usr/ports/textproc/flex make install clean
This installation didn't override the old /usr/bin/, but put a new release on /usr/local/bin/.
Then we need to rename the old flex release:
mv /usr/bin/flex /usr/bin/flex.old
And check your version with this command:
flex --version
You should obtain: 2.5.35 (or newer)
Install wxgtk28:
cd /usr/ports/x11-toolkits/wxgtk28-unicode/ make install clean
Install cryptopp:
cd /usr/ports/security/cryptopp make install clean
Install GD:
cd /usr/ports/graphics/gd make install clean
Install GeoIP:
cd /usr/ports/net/GeoIP/ make install clean
Download the aMule 2.2.4 source code here.
tar -zxvf aMule-2.2.4.tar.bz2 cd aMule-2.2.2/
You need to edit the file src/Scanner.l and after the line:
#include <wx/string.h>
Add the line:
#include "Scanner.h.in"
Configure some environement variable, for bash user:
export CPPFLAGS="-I/usr/local/include" export LDFLAGS="-L/usr/local/lib"
Or for csh user (default under FreeBSD):
setenv CPPFLAGS "-I/usr/local/include" setenv LDFLAGS "-L/usr/local/lib"
Then start the compilation:
./configure --prefix=/home/user/aMule-2.2.4/ \ --with-wx-config=/usr/local/bin/wxgtk2u-2.8-config --with-crypto-prefix=/usr/local/ \ --disable-debug --with-curl-config=/usr/local/bin/curl-config --enable-webserver \ --enable-optimize --with-included-gettext --enable-amule-daemon --enable-amulecmd \ --enable-cas --enable-alcc --enable-geoip
NOTE: Check configure. Also, change user for your user name.
gmake gmake install
And start it:
./amule-2.2.4/bin/amule &