Install-amule-freebsd-ru
From AMule Project FAQ
Revision as of 11:17, 9 December 2008 by Vadim s. sabinich (Talk | contribs)
Установка aMule 2.2.2 для FreeBSD 6.X, 7.X
Check that your /usr/ports 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.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)
Установка wxgtk28:
cd /usr/ports/x11-toolkits/wxgtk28-unicode/ make install clean
Установка cryptopp:
cd /usr/ports/security/cryptopp make install clean
Установка GD:
cd /usr/ports/graphics/gd make install clean
Установка GeoIP:
cd /usr/ports/net/GeoIP/ make install clean
Скачайте исходный код aMule 2.2.2 здесь.
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>
Добавьте строку:
#include "Scanner.h.in"
Начните компиляцию:
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
И теперь можно запускать
./amule-2.2.2/bin/amule &