Install-amule-freebsd
maybe this page outdates soon, until then it may help u
Contents
install amule 2.0.0rc3 on freebsd 5.x
why would u ask... we have /usr/ports/net/amule
well, this is the stable version 1.2.6
we wanna stay current or help testing / debugging, why else would u read this?
install ports we need if u dont allready have (see pkg_info)
security/cryptopp
and
x11-toolkits/wxgtk
and (but u will have this already ;-)
devel/gettext
and (but u will have this already ;-)
devel/gmake
u know how to install ports as a bsd user, so i dont have to tell u i hope. its just too easy u know. in case ur very new to freebsd, consult the great handbook at www.freebsd.org.
NOTE: if u think u have wxgtk installed because u see wxgtk2, u should know, wxgtk is linked to gtk1 and wxgtk2 is linked to gtk2. wxgtk2 and amule will be unstable! u have to use wxgtk, not wxgtk2!
configure
the ./configure does not work 100% automagically, we must help it out a bit
i used the following line of configure, wich may differ for u a bit due to different os or library versions u have installed
right now this line works for FreeBSD 5.2-CURRENT 03-May-2004 for example but version numbers may be different for freebsd 5.2.1 or the upcomming 5.3.
edit the <your home> tag of course, or install it elsewhere.
./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
this is one single line, not 3 lines or whatever wiki/html/ur browser wraps this line into.
u will see configure doesnt find gdlib-config, even if u unstalled gdlib. dont care, its just not there and its no "must have". just skip it.
NOTE: if u get the following warning at the end of configure u are probably linking to wxgtk2 instead of wxgtk. amule will memleak and eat ur cpu. it will probably crash as well. use wxgtk as mentioned above!
WARNING!! Your wxWidgets copy has been linked against GTK2 and this will make aMule be instable, use so much cpu and ram. You have been advised, dont report bugs so.
patch 1
the problem would be:
[...] /usr/bin/ld: cannot find -lcryptopp gmake[2]: *** [cas] Error 1 gmake[2]: Leaving directory `/home/eugene/aMule-2.0.0rc3/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/home/eugene/aMule-2.0.0rc3' gmake: *** [all] Error 2
so we patch it now:
edit src/Makefile
search for the line containing
cryptopp
this line will read as:
LIBS = -lcryptopp
add -L/usr/local/lib to that line
now the line will read as:
LIBS = -L/usr/local/lib -lcryptopp
patch 2
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 :-)
edit src/amule.cpp
and insert
#define __OPENBSD__
at the top of this file. i placed it right before the first #include line...
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 ;-)
make
make will fail, use gmake
make is bsd make, gmake is gnu make, both are not compatible
now do:
gmake
get urself a hot green tea (i prefer some sort of sencha) while it is compiling
then do:
gmake install
use it
just start it with /home/<your home>/amule/bin/amule or whereever u installed it to...
have phun
Eugene