Difference between revisions of "Install-amule-freebsd"

From AMule Project FAQ
Jump to: navigation, search
m (Add CPP and LDF flags (fix GD), enable GeoIP)
m (fix flex release number)
Line 18: Line 18:
 
             flex --version
 
             flex --version
  
You should obtain: 2.5.4
+
You should obtain: 2.5.3X
  
 
Install wxgtk28:
 
Install wxgtk28:

Revision as of 23:29, 24 July 2008

Install aMule SVN on FreeBSD 6.X, 7.X

Check that your /usr/port is up-to-date, for example using portsnap: portsnap fetch update

Upgrade the FreeBSD flex release (2.5.4) with the new one (2.5.3x):

           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.3X

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 latest aMule SVN snapshot here.

(This article is tested with http://www.hirnriss.net/files/cvs/aMule-CVS-20080331.tar.bz2)

           tar -zxvf aMule-CVS-20080331.tar.bz2
           cd amule-cvs/
           export CPPFLAGS="-I/usr/local/include"
           export LDFLAGS="-L/usr/local/lib"
           ./configure --prefix=/home/user/amule-cvs/ \
           --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

Installing old 2.1.3

The amule port can be found at:

/usr/ports/net-p2p/amule2

I prefer the installation of applications on freebsd through the ports collection. Assumeing you're useing freebsd 6.2, as root:

  1. cd /usr/ports/net-p2p/amule2
  2. make install clean

In the next menu select deamon if you've plans to remote control aMule, or leave the options as they are, press OK and wait for compilation. The time needed depends on the depended applications that has te be installed. The program directory can be found: (~./aMule/). Means as root:

/root/.aMule/

any other user:

/usr/home/<username>/.aMule/

amule.conf can be found directly in the program folder. The webserver config file has to be made:

  1. amuleweb -w.

and is called remote.conf


The stable aMule is version 2.1.3.

We wanna stay current? Help test? Help debug? Continue with this article to learn how to install/compile aMule on your system.