Difference between revisions of "Install-amule-freebsd"

From AMule Project FAQ
Jump to: navigation, search
(=Update 15-Dec-2004: Install aMule-cvs on FreeBSD 5.3=)
 
(47 intermediate revisions by 17 users not shown)
Line 1: Line 1:
This page is likely to be updated soon, but it might help you even right now.
+
<center>
 +
[[Install-amule-freebsd|English]] |
 +
[[Install-amule-freebsd-ru|Русский]] |
 +
[[Install-amule-freebsd-es|Espa&ntilde;ol]] |
 +
[[Install-amule-freebsd-it|Italiano]]
 +
</center>
  
== Update 15-Dec-2004: Install aMule-cvs on FreeBSD 5.3 ==
+
== 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
  
Make sure you have installed:
+
(you may need portsnap extract or portsnap fetch extract if not done before, you should be told at the end if this is necessary)
  
/usr/ports/x11-toolkits/wxgtk2
+
Then, as the ports tree has been updated to 2.2.4, you should be able to just
  
-> Ignore the "problems" about wxgtk2 on FreeBSD. It works perfect!
+
Install aMule
  
Download the latest aMule-cvs snapshot
+
            cd /usr/ports/net/amule2
[http://www.amule.org/files/download.php?file=5 aMule-cvs Files]
+
            make config
 +
            make install clean
  
fetch http://amule.hirnriss.net/cvs/aMule-cvs-20041215.tar.bz2
 
  
tar -zxvf aMule-cvs-20041215.tar.bz2
+
That should download and make all necessary dependencies etc.
  
cd amule-cvs/
+
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):
  
./configure --prefix=~/amule-cvs/
 
--with-wx-config=/usr/X11R6/bin/wx-config
 
--with-wxbase-config=/usr/X11R6/bin/wx-config
 
--disable-debug --with-curl-config=/usr/local/bin/curl-config
 
--enable-optimize --x-libraries=/usr/X11R6/lib
 
--x-includes=/usr/X11R6/include --localstatedir=/usr/X11R6/share/gnome
 
--datadir=/usr/X11R6/share/gnome --with-html-dir=/usr/X11R6/share/doc
 
--with-crypto-prefix=/usr/local --with-included-gettext --disable-cas
 
  
gmake
 
cd ~/amule-cvs/src/amule
 
  
If you would like to install RC7, you can follow the same instructions.
+
Upgrade the FreeBSD 6.X (not needed on FreeBSD 7.X) flex release (2.5.4) with the new one (2.5.35):
  
Greetz,
+
            cd  /usr/ports/textproc/flex
Martin
+
            make install clean
  
[mailto://amule@air-maxx.net amule@air-maxx.net]
+
This installation didn't override the old /usr/bin/, but put a new release on /usr/local/bin/.
  
==  Install [[aMule]] 2.0.0rc3 on [http://www.freebsd.org FreeBSD] 5.x  ==
+
Then we need to rename the old flex release:
  
Why would you ask... we have ''/usr/ports/net/amule''
+
            mv /usr/bin/flex /usr/bin/flex.old
Well, this is the stable version 1.2.6
+
We wanna stay current or help testing / debugging, why else would you read this?
+
  
==  Install ports we need if you don't allready have (see ''pkg_info'')  ==
+
And check your version with this command:
  
''x11-toolkits/wxgtk''
+
            flex --version
  
also (but you will have these already ;-)) ''devel/gettext'' and ''devel/gmake''
+
You should obtain: 2.5.35 (or newer)
  
You know how to install ports as a [http://www.bsd.org BSD] user, so I don't have to tell you, I hope. It's just too easy you know. In case you're very new to [http://www.freebsd.org FreeBSD], consult the great [http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook handbook] at [http://www.freebsd.org http://www.freebsd.org].
+
Install wxgtk28:
  
==  Configure  ==
+
            cd /usr/ports/x11-toolkits/wxgtk28-unicode/
 +
            make install clean
  
The ''./configure'' does not work 100% automagically, we must help it out a bit.
+
Install cryptopp:
  
Edit the '''<your home>''' tag, of course, or install it elsewhere.
+
            cd /usr/ports/security/cryptopp
 +
            make install clean
  
''./configure --prefix=/home/'''<your home>'''/amule --with-wx-config=/usr/X11R6/bin/wxgtk-2.4-config --with-wxbase-config=/usr/X11R6/bin/wxgtk-2.4-config''
+
Install GD:
  
'''NOTE:''' This is one single line, not 3 lines or whatever [http://wiki.org/wiki.cgi?WhatIsWiki wiki]/HTML/your browser wraps this line into.
+
            cd /usr/ports/graphics/gd
 +
            make install clean
  
You will see configure doesn't find ''gdlib-config'', even if you installed ''gdlib''. Don't care, it's just not there and it's no "must have". Just skip it.
+
Install GeoIP:
  
'''NOTE:''' If you get the following warning:
+
            cd /usr/ports/net/GeoIP/
 +
            make install clean
  
''WARNING!! Your wxWidgets copy has been linked against GTK2 and this will make aMule be unstable, use so much cpu and ram. You have been advised, don't report bugs so.''
+
Download the aMule 2.2.4 source code
 +
[http://www.amule.org/files/files.php?cat=42 here].
  
at the end of ''configure'' you are probably linking against [[wxWidgets|wxGTK2]] instead of [[wxWidgets|wxGTK]]. [[aMule]] will memleak and eat your CPU. It will probably crash as well. Use [[wxWidgets|wxGTK]] as mentioned above!
+
            tar -zxvf aMule-2.2.4.tar.bz2
 +
            cd aMule-2.2.2/
  
==  Make  ==
+
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
  
''make'' will fail, use ''gmake''
+
'''NOTE:''' Check [[configure]]. Also, change '''user''' for your user name.
  
''make'' is [http://www.bsd.org BSD] [http://www.gnu.org/software/make make], ''gmake'' is [http://www.gnu.org GNU] [http://www.gnu.org/software/make make]. They are '''not''' compatible.
+
            gmake
 +
            gmake install
  
Now do:
+
And start it:
 +
          ./amule-2.2.4/bin/amule &
  
''gmake''
 
  
Get yourself a hot green tea (I prefer some sort of sencha) while it is compiling.
+
== Configuration info ==
  
Then do:
+
After successfully installing:
  
''gmake install''
+
The program directory can be found: (~./aMule/). Means as root:
  
==  Use it  ==
+
/root/.aMule/
  
 +
any other user:
  
Just start it with ''/home/<your home>/amule/bin/amule''
+
/usr/home/<username>/.aMule/
or wherever you installed it to...
+
  
Have phun
+
amule.conf can be found directly in the program folder. The webserver config file has to be made:
  
Eugene
+
# amuleweb -w.
  
== The rc6 port ==
+
and is called remote.conf
 
+
Visit http://www.amule-project.net/amule/thread.php?threadid=3758 and do as it sais ;-)
+
 
+
== The rc7 port ==
+
 
+
Hi all, the rc7 port is now available on my website : http://contribs.martymac.com.
+
I've also added binaries for those who don't want to spend time to compile. The port works on FreeBSD 4.10 and 5.2.1. Any feedback welcome. I've changed some options to the Makefile : amule-ed2k-handler is now amule-ed2k, and cmd+GUI options are now joined in global ones. Do a "make config" prior to the "make install" to update your config file.
+
 
+
Enjoy :)
+
 
+
Ganael LAPLANCHE
+
 
+
http://contribs.martymac.com
+
 
+
[mailto://ganael.laplanche@martymac.com ganael.laplanche@martymac.com]
+

Latest revision as of 18: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