How to compile rtorrent on Solaris 10
WORK IN PROGRESS
rtorrent compiles, but seems to be unstable.
Use the older version
0.12.6/0.8.6 for a stabil version.
In this example i used pkgsrc to build all non Solaris dependencies
- libcurl >= 7.12.0
- ncurses
- libsigc++
- xmlrpc
- ssl
- cppunit
In my case i use
/opt/pkg
for the pkgsrc packages. More infos in
SoftwarePackagesforSolaris
libtorrent-0.13.3 / rtorrent-0.9.3
Download Sources
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.13.3.tar.gz
wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.3.tar.gz
Unpack, patch and build libtorrent
gtar xzfv libtorrent-0.13.3.tar.gz
cd libtorrent-0.13.3/
wget http://s2p.de/pub/Sysadmin/RtorrentSolaris10/libtorrent-0.13.3-solaris-pitz.patch
gpatch -p1 < libtorrent-0.13.3-solaris-pitz.patch
Maybe is is a good idea to configure with
--enable-debug
--enable-extra-debug
export PKG_CONFIG_PATH=/opt/pkg/lib/pkgconfig
./configure --with-gnu-ld --prefix=/opt/local
gmake
gmake install
Unpack, patch and build rtorrent
cd ../
gtar xzfv rtorrent-0.9.3.tar.gz
cd rtorrent-0.9.3/
wget http://s2p.de/pub/Sysadmin/RtorrentSolaris10/rtorrent-0.9.3-solaris-pitz.patch
gpatch -p1 < rtorrent-0.9.3-solaris-pitz.patch
I got error with
--with-xmlrpc-c=/usr/pkg/bin/xmlrpc-c-config
configure: error: Could not compile XMLRPC-C test.
WORKAROUND omit
--with-xmlrpc-c
sh
export LD_LIBRARY_PATH=/opt/local/lib:/opt/pkg/lib
export PKG_CONFIG_PATH=/opt/pkg/lib/pkgconfig:/opt/local/lib/pkgconfig
export CPPFLAGS="-I/opt/pkg/include -I/opt/local/include"
export LDFLAGS="-L/opt/pkg/lib -L/opt/local/lib -R/opt/pkg/lib -R/opt/local/lib -lncurses"
csh
setenv LD_LIBRARY_PATH /opt/local/lib:/opt/pkg/lib
setenv PKG_CONFIG_PATH /opt/pkg/lib/pkgconfig:/opt/local/lib/pkgconfig
setenv CPPFLAGS "-I/opt/pkg/include -I/opt/local/include"
setenv LDFLAGS "-L/opt/pkg/lib -L/opt/local/lib -R/opt/pkg/lib -R/opt/local/lib -lncurses"
Maybe is is a good idea to configure with
--enable-debug
--enable-extra-debug
./configure --with-gnu-ld --prefix=/opt/local
gmake
gmake install
alternative
./configure CC=gcc CFLAGS=-O2 --with-gnu-ld --prefix=/opt/localtest
Patches for libtorrent-0.13.3 / rtorrent-0.9.3
libtorrent-0.12.6 / rtorrent-0.8.6
Older
How to for Solaris
Patches for libtorrent-0.12.6 / rtorrent-0.8.6
Links
Example .rtorrent.rc
file
With rtorrent-0.8.6 i get
Download event action failed: Bad return code.
!!