开头篇
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.5.tar.gz
wegt http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.5.tar.gz
tar zxvf libtorrent-0.12.5.tar.gz
tar zxvf rtorrent-0.8.5.tar.gz
svn co https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable/ xmlrpc-c
cd xmlrpc-c
./configure –disable-cplusplus
make
sudo make install
cd ..
cd libtorrent-0.12.5/
rm -f scripts/{libtool,lt*}.m4
./autogen.sh
./configure
make
sudo make install
cd ..
cd rtorrent-0.8.5/
rm -f scripts/{libtool,lt*}.m4
./autogen.sh
./configure –with-xmlrpc-c
after that command make sure you see "checking for XMLRPC…. OK" near the end of the outputted text**
make
sudo make install
cd ..
以上2步骤中rm -f scripts/{libtool,lt*}.m4 是因为 libtool的问题 具体可以看 http://libtorrent.rakshasa.no/ticket/1852
/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -g -DDEBUG -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/local/include -o rtorrent command_download.o command_dynamic.o command_events.o command_file.o command_helpers.o command_local.o command_network.o command_object.o command_peer.o command_tracker.o command_scheduler.o command_ui.o control.o globals.o main.o option_parser.o signal_handler.o ui/libsub_ui.a core/libsub_core.a display/libsub_display.a input/libsub_input.a rpc/libsub_rpc.a utils/libsub_utils.a -lncurses -lsigc-2.0 -lcurl -L/usr/local/lib -ltorrent ../libtool: line 841: X--tag=CXX: command not found ../libtool: line 874: libtool: ignoring unknown tag : command not found ../libtool: line 841: X--mode=link: command not found ../libtool: line 1008: *** Warning: inferring the mode of operation is deprecated.: command not found ../libtool: line 1009: *** Future versions of Libtool will require --mode=MODE be specified.: command not found gcc: no input files gcc: no input files gcc: no input files gcc: no input files ../libtool: line 2253: X-g: command not found ../libtool: line 2253: X-O2: command not found ../libtool: line 2253: X-g: command not found ../libtool: line 2253: X-DDEBUG: command not found ../libtool: line 2253: X-I/usr/include/sigc++-2.0: No such file or directory ../libtool: line 2253: X-I/usr/lib/sigc++-2.0/include: No such file or directory ../libtool: line 2253: X-I/usr/local/include: No such file or directory ../libtool: line 1967: X-L/usr/local/lib: No such file or directory ../libtool: line 2422: Xrtorrent: command not found ../libtool: line 2427: X: command not found ../libtool: line 2434: Xrtorrent: command not found ../libtool: line 2442: mkdir /.libs: No such file or directory
如果不这么搞,会出现变异错误,这个错误郁闷了我很久 –_-!!
之后就完全没问题了。。
编译运行很正常
在用screen 运行很流畅 –_-!!
reference: [via]
另外还有一个脚步一步实现版本: http://ubuntuforums.org/showthread.php?t=1064377 wTorrent + rTtorrent installation script: Installing wTorrent on Ubuntu in 3 steps


