Building libtorrent and 1.3.6 on Debian sid

General support for problems installing or using Deluge
Post Reply
ernobe
Member
Member
Posts: 11
Joined: Tue Sep 24, 2013 8:23 pm

Building libtorrent and 1.3.6 on Debian sid

Post by ernobe »

You will need the libboost packages, particularly

libboost-filesystem1.54-dev
libboost-system1.54-dev
libboost-thread1.54-dev
libboost-iostreams1.54-dev
libboost-exception1.54-dev
libboost-context1.54-dev
libboost-regex1.54-dev
libboost-locale1.54-dev

and others. Just go thru the list and pick those which are applicable in a general programming environment. They will add up to about 9m installed. These packages depend on Debians' boost development package ( libboost1.54-dev), which contains the bjam executable file. I also installed the libboost-python1.54-dev package, which contains the Boost Python library. It depends on the Python development packages.

You should also have everything mentioned in the DEPENDS file of the 1.3.6 tarball and the libssl-dev package. Remove all packages containing libtorrent in the package name. Then go to http://sourceforge.net/p/libtorrent/cod ... s/RC_0_16/ and download libtorrent. Unzip it, cd to it and type:

$ ./autotool.sh

If everything goes fine you should then type:

$ ./configure --enable-python-binding

Then:

$ make

After this, extract the 1.3.6 tarball to another directory, cd to it and make a symlink to the libtorrent directory ( symlink should be named libtorrent and point to the directory where you just built libtorrent ). Then type:

$ python setup.py build

Then:

$ sudo python setup.py install

And that's it.

I also have the init script from https://gist.github.com/alghanmi/5667666 modified so it points to /usr/local/bin instead of /usr/bin. Install instructions at:
http://dev.deluge-torrent.org/wiki/User ... ipt/Ubuntu

Thanks due to the thread of crishna at
http://forum.deluge-torrent.org/viewtop ... =7&t=45725
Last edited by ernobe on Wed Oct 02, 2013 7:38 pm, edited 1 time in total.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Building libtorrent and 1.3.6 on Debian sid

Post by Cas »

You have overcomplicated the instructions a little and 0.16 doesn't require all those boost libs, iirc only libboost-system and libboost-python are needed.

http://forum.deluge-torrent.org/viewtop ... 27#p173249
abubin
Seeder
Seeder
Posts: 217
Joined: Thu Sep 13, 2007 6:03 am

Re: Building libtorrent and 1.3.6 on Debian sid

Post by abubin »

how stable is deluge in debian? I am thinking of moving over to debian as well.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Building libtorrent and 1.3.6 on Debian sid

Post by Cas »

abubin what OS are you currently using?
ernobe
Member
Member
Posts: 11
Joined: Tue Sep 24, 2013 8:23 pm

Re: Building libtorrent and 1.3.6 on Debian sid

Post by ernobe »

abubin wrote:how stable is deluge in debian? I am thinking of moving over to debian as well.
Not very. The latest version of Deluge, 1.3.6 is available under 'experimental'. 'Unstable' has 1.3.3.

I don't understand the reasoning that well but assume it has to do with the packagers intent to keep the daemon as a separate package from deluge-gtk and deluge-web. In experimental it comes with an init script with user deluge-daemon, but if you try to su into deluge-daemon from root you are told the user doesn't exist!
I just changed the user to myself ( in the init script ) and so far everything is going OK.
Post Reply