Difference between revisions of "Install-amule-freebsd"

From AMule Project FAQ
Jump to: navigation, search
(=install ports we need if u dont allready have (see ''pkg_info'')=)
 
(99 intermediate revisions by 23 users not shown)
Line 1: Line 1:
maybe this page outdates soon,
+
<center>
until then it may help u
+
[[Install-amule-freebsd|English]] |
 +
[[Install-amule-freebsd-ru|Русский]] |
 +
[[Install-amule-freebsd-es|Espa&ntilde;ol]] |
 +
[[Install-amule-freebsd-it|Italiano]]
 +
</center>
  
 +
== 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
  
== install amule 2.0.0rc3 on freebsd ==
+
(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
  
why would u ask... we have /usr/ports/net/amule
+
Install aMule
  
well, this is the stable version 1.2.6
+
            cd /usr/ports/net/amule2
 +
            make config
 +
            make install clean
  
we wanna stay current or help testing / debugging, why else would u read this?
 
  
 +
That should download and make all necessary dependencies etc.
  
== install ports we need if u dont allready have (see ''pkg_info'') ==
+
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):
  
  
''security/cryptopp''
 
  
and
+
Upgrade the FreeBSD 6.X (not needed on FreeBSD 7.X) flex release (2.5.4) with the new one (2.5.35):
  
''x11-toolkits/wxgtk-common''
+
            cd  /usr/ports/textproc/flex
 +
            make install clean
  
u know how to install ports as a bsd user, so i dont have to tell u i hope.
+
This installation didn't override the old /usr/bin/, but put a new release on /usr/local/bin/.
its just too easy u know.
+
  
and i suggest u have ''gettext'' installed, else maybe u have to do some small changes to the configure line (see ''./configure --help'')
+
Then we need to rename the old flex release:
  
== set any optimization CFLAGS/CXXFLAGS ==
+
            mv /usr/bin/flex /usr/bin/flex.old
  
 +
And check your version with this command:
  
i only tested with "''-O2 -pipe -march=athlon''"
+
            flex --version
  
-O3 or any other flags may not work for u, i completely dont know.
+
You should obtain: 2.5.35 (or newer)
  
if u want a debug version, not a user version, dont use any -O, instead turn on "-Wall -g3"... but as with the -O3 i didnt test and so i dont know if it will work.
+
Install wxgtk28:
  
 +
            cd /usr/ports/x11-toolkits/wxgtk28-unicode/
 +
            make install clean
  
== configure ==
+
Install cryptopp:
  
 +
            cd /usr/ports/security/cryptopp
 +
            make install clean
  
the ./configure does not work 100% auto, we must help it
+
Install GD:
  
i used the following line of configure, and i hope it may help u:
+
            cd /usr/ports/graphics/gd
 +
            make install clean
  
edit the <your home> tag of course, or install it elsewhere...
+
Install GeoIP:
  
''./configure --prefix=/home/<your home>/amule --with-wx-config=/usr/X11R6/bin/wxgtk2-2.4-config --with-wxbase-config=/usr/X11R6/bin/wxgtk2-2.4-config''
+
            cd /usr/ports/net/GeoIP/
 +
            make install clean
  
this is one single line, not 3 lines or whatever wiki/html/ur browser wraps this line into...
+
Download the aMule 2.2.4 source code
 +
[http://www.amule.org/files/files.php?cat=42 here].
  
well if u have other versions installed u need to change the line a bit, im driving a very current version right now, FreeBSD 5.2-CURRENT 03-May-2004
+
            tar -zxvf aMule-2.2.4.tar.bz2
 +
            cd aMule-2.2.2/
  
u will see configure doenst find gdlib-config, even if u unstalled gdlib, dont care, its just not there, but ist no "must have". skip it.
+
You need to edit the file src/Scanner.l and after the line:
 +
            #include <wx/string.h>
 +
Add the line:
 +
            #include "Scanner.h.in"
  
skip the other warnings as well, esp. the end of configure:
+
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.
Which libraries should aMule use?
+
wxWidgets 2.4.2
+
GTK Not detected
+
  
 +
            gmake
 +
            gmake install
  
WARNING!! Your wxWidgets copy has been linked against GTK2 and this will make aMule
+
And start it:
be instable, use so much cpu and ram. You have been advised, don't report bugs so.
+
          ./amule-2.2.4/bin/amule &
''
+
its just alright!
+
  
  
== patch ==
+
== Configuration info ==
  
 +
After successfully installing:
  
as there is no official freebsd support in amule yet?! we will patch it to work... well there is openbsd support and this support will work for us too :-)
+
The program directory can be found: (~./aMule/). Means as root:
  
edit src/amule.cpp
+
/root/.aMule/
  
and insert
+
any other user:
  
''#define __OPENBSD__''
+
/usr/home/<username>/.aMule/
  
at the top of this file. i plced it right before the first #include line...
+
amule.conf can be found directly in the program folder. The webserver config file has to be made:
  
what a workaround u may scream. hey we dont fiddle too much around with the code, just hack it to work and get ready to share ;-)
+
# amuleweb -w.
  
 
+
and is called remote.conf
== make ==
+
 
+
 
+
make will fail, due to the bsd make is not compatible with gnu make and amule does not care yet, anyways...
+
 
+
install gnu make if u dont already have
+
its placed: ''/usr/ports/devel/gmake/''
+
 
+
then all u have to do is:
+
 
+
''gmake''
+
 
+
now it should compile
+
 
+
then u do, of course:
+
 
+
''gmake install''
+
 
+
 
+
== use it ==
+
 
+
 
+
just start it with ''/home/<your home>/amule/bin/amule''
+
or whereever u installed it to...
+
 
+
have phun
+
 
+
Eugene
+

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