Difference between revisions of "Install-amule-freebsd"

From AMule Project FAQ
Jump to: navigation, search
(update cvs release tested)
 
(25 intermediate revisions by 9 users not shown)
Line 1: Line 1:
==  Installing official [[aMule]] ports  ==
+
<center>
Version 2.1.3
+
[[Install-amule-freebsd|English]] |
 +
[[Install-amule-freebsd-ru|Русский]] |
 +
[[Install-amule-freebsd-es|Espa&ntilde;ol]] |
 +
[[Install-amule-freebsd-it|Italiano]]
 +
</center>
  
The amule port can be found at:
+
== Install aMule 2.2.4 on [http://www.freebsd.org FreeBSD] 6.X, 7.X ==
 +
Check that your /usr/ports is up-to-date, for example using portsnap:
 +
          portsnap fetch update
  
/usr/ports/net-p2p/amule2
+
(you may need portsnap extract or portsnap fetch extract if not done before, you should be told at the end if this is necessary)
  
I prefer the installation of applications on freebsd through the ports collection. Assumeing you're useing freebsd 6.2, as root:
+
Then, as the ports tree has been updated to 2.2.4, you should be able to just
  
# cd /usr/ports/net-p2p/amule2
+
Install aMule
# 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:
+
            cd /usr/ports/net/amule2
 +
            make config
 +
            make install clean
  
/root/.aMule/
 
  
any other user:
+
That should download and make all necessary dependencies etc.
  
/usr/home/<username>/.aMule/
+
But if that doesn't work you can try (should also be useful for a newer version of aMule then 2.2.4 and the cvs):
  
amule.conf can be found directly in the program folder. The webserver config file has to be made:
 
  
# amuleweb -w.
 
  
and is called remote.conf
+
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
The stable [[aMule]] is version 2.1.3.
+
            make install clean
 
+
We wanna stay current? Help test? Help debug? Continue with this article to learn how to install/compile aMule on your system.
+
 
+
== Install [[aMule CVS]] on [http://www.freebsd.org FreeBSD] 6.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/.
 
This installation didn't override the old /usr/bin/, but put a new release on /usr/local/bin/.
Line 43: Line 36:
 
Then we need to rename the old flex release:
 
Then we need to rename the old flex release:
  
''mv /usr/bin/flex /usr/bin/flex.old''
+
            mv /usr/bin/flex /usr/bin/flex.old
  
 
And check your version with this command:
 
And check your version with this command:
  
''flex --version''
+
            flex --version
  
You should obtain: 2.5.3x
+
You should obtain: 2.5.35 (or newer)
  
 
Install wxgtk28:
 
Install wxgtk28:
  
''cd /usr/ports/x11-toolkits/wxgtk28-unicode/''
+
            cd /usr/ports/x11-toolkits/wxgtk28-unicode/
 
+
            make install clean
''make install clean''
+
  
 
Install cryptopp:
 
Install cryptopp:
  
''cd /usr/ports/security/cryptopp''
+
            cd /usr/ports/security/cryptopp
 +
            make install clean
  
''make install clean''
+
Install GD:
  
Download the latest [[aMule CVS]] snapshot
+
            cd /usr/ports/graphics/gd
[http://www.amule.org/files/download.php?file=5 here].
+
            make install clean
  
(This article is tested with http://www.hirnriss.net/files/cvs/aMule-CVS-20080331.tar.bz2)
+
Install GeoIP:
  
''tar -zxvf aMule-CVS-20080331.tar.bz2''
+
            cd /usr/ports/net/GeoIP/
 +
            make install clean
  
''cd amule-cvs/''
+
Download the aMule 2.2.4 source code
 +
[http://www.amule.org/files/files.php?cat=42 here].
  
''./configure --prefix=/home/'''user'''/amule-cvs/
+
            tar -zxvf aMule-2.2.4.tar.bz2
--with-wx-config=/usr/local/bin/wxgtk2u-2.8-config --with-crypto-prefix=/usr/local/  
+
            cd aMule-2.2.2/
--disable-debug --with-curl-config=/usr/local/bin/curl-config --enable-webserver  
+
 
--enable-optimize --with-included-gettext --enable-amule-daemon --enable-amulecmd --enable-cas''
+
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.
 
'''NOTE:''' Check [[configure]]. Also, change '''user''' for your user name.
  
''gmake''
+
            gmake
 +
            gmake install
  
''gmake install''
+
And start it:
 +
          ./amule-2.2.4/bin/amule &
 +
 
 +
 
 +
== Configuration info ==
 +
 
 +
After successfully installing:
 +
 
 +
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:
 +
 
 +
# amuleweb -w.
 +
 
 +
and is called remote.conf

Latest revision as of 17:13, 8 February 2010

English | Русский | Español | Italiano

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 or portsnap fetch extract if not done before, you should be told at the end if this is necessary)

Then, as the ports tree has been updated to 2.2.4, you should be able to just

Install aMule

           cd /usr/ports/net/amule2
           make config
           make install clean


That should download and make all necessary dependencies etc.

But if that doesn't work you can try (should also be useful for a newer version of aMule then 2.2.4 and the cvs):


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 &


Configuration info

After successfully installing:

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