Sysadmin > SolarIs > RtorrentSolaris10

How to compile rtorrent on Solaris 10

wipwipwip WORK IN PROGRESS wipwipwip 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


Unpack, patch and build libtorrent

gtar xzfv libtorrent-0.13.3.tar.gz
cd libtorrent-0.13.3/

gpatch -p1 < libtorrent-0.13.3-solaris-pitz.patch

support 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 install

Unpack, patch and build rtorrent

cd ../
gtar xzfv rtorrent-0.9.3.tar.gz
cd rtorrent-0.9.3/

gpatch -p1 < rtorrent-0.9.3-solaris-pitz.patch

ALERT! 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

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"
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"
support Maybe is is a good idea to configure with --enable-debug --enable-extra-debug
./configure --with-gnu-ld --prefix=/opt/local
gmake install

./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

Example .rtorrent.rc file

ALERT! With rtorrent-0.8.6 i get Download event action failed: Bad return code. !!