PS(1)
Milktea cannot `mv /usr/bin/flex /usr/bin/flex.old`,
the /usr/bin is under read-only filesystem.
take shell script swich flex if /opt/usr-local/bin/flex exist
I moved the $PATH veriables sequences. Make sure /usr/local/bin is front of /usr/bin ( /etc/login.conf is under part of read-write filesystem.)
Add an user amule. Mount the explicated slice to /home/amule
with nullfs.(it looks too ugly in fstab)
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.2 source code here.
tar -zxvf aMule-2.2.2.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"
Then start the compilation:
export CPPFLAGS="-I/usr/local/include"
export LDFLAGS="-L/usr/local/lib"
./configure --prefix=/home/user/aMule-2.2.2/ \
--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.2/bin/amule &
沒有留言:
張貼留言