Debian Squeeze source install: libtorrent upgrade?

General support for problems installing or using Deluge
Post Reply
Darlok
New User
New User
Posts: 7
Joined: Mon Oct 29, 2012 2:05 am

Debian Squeeze source install: libtorrent upgrade?

Post by Darlok »

Greetings,

Currently running a source installed Deluge 1.3.5 on Debian Squeeze.

Code: Select all

$ deluge --version
deluge: 1.3.5
libtorrent: 0.14.12.0
Since it seems some earlier versions of libtorrent had some 'issues' with thier end-game algo's causing some havok at the tail end of downloads, I figured it maybe a neat idea to upgrade libtorrent to a more recent version for testing purposes.

I issued the following:

Code: Select all

wget http://libtorrent.googlecode.com/files/libtorrent-rasterbar-0.16.5.tar.gz
tar xvzf libtorrent-rasterbar-0.16.5.tar.gz
cd libtorrent-rasterbar-0.16.5
./configure --enable-python-binding
cd bindings/python/
python setup.py build
sudo python setup.py install
cd ../..
make
sudo make install
Build went fine besides a few typical warnings (python 2.6.6) ~ and then ran:

Code: Select all

$ python -c "import libtorrent as lt; print lt.version"
0.16.5.0
So far so good, or so I thought: (post build/install)

Code: Select all

$ deluge --version
deluge: 1.3.5
libtorrent: 0.14.12.0
Obviously I missed some linking somewhere, or I flat out didn't do it right. I do not want to install through a pre-built repo or Ubuntu PPA (as most answers seem to be), as I want to understand how this thing ticks -- and more importantly be able to upgrade/downgrade libtorrent and deluge through source.

Another issue is that libtorrent.so contains no 'standard' appended version numbers making it that much tougher to track down.

Code: Select all

/usr/local/lib/python2.6/dist-packages/deluge-1.3.5-py2.6-linux-x86_64.egg/deluge/libtorrent.so  <<WTF
I'd be more than grateful if someone could toss a bone on what I may have missed/done wrong.

Cheers and thanks!
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Debian Squeeze source install: libtorrent upgrade?

Post by Cas »

Darlok wrote:/usr/local/lib/python2.6/dist-packages/deluge-1.3.5-py2.6-linux-x86_64.egg/deluge/libtorrent.so <<WTF
Delete it, you have run the deluge setup before installing libtorrent so the script built it from source.
Darlok
New User
New User
Posts: 7
Joined: Mon Oct 29, 2012 2:05 am

Re: Debian Squeeze source install: libtorrent upgrade?

Post by Darlok »

Thanks for taking the time to reply CAS.

While deletion in itself would have obviously broken deluge (had no libtorrent object), it gave me an epiphany I obviously overlooked...

Ultimately ended up renaming the existing object to libtorrent.0.14.12.0.so, copied the fresh 0.16.5.0 object to the working deluge directory and symlinking it. The symlink allows an easy swap between libtorrent versions for future testing, and the libtorrent shared objects are now labled properly so I know what's what:

Code: Select all

cd /usr/local/lib/python2.6/dist-packages/deluge-1.3.5-py2.6-linux-x86_64.egg/deluge
mv libtorrent.so libtorrent.0.14.12.0.so
cp /usr/src/libtorrent-rasterbar-0.16.5/bindings/python/build/lib.linux-x86_64-2.6/libtorrent.so libtorrent.0.16.5.0.so
ln -s libtorrent.0.16.5.0.so libtorrent.so
.
.
$deluge --version
deluge: 1.3.5
libtorrent: 0.16.5.0
Hope this helps someone in the future.
H320
Member
Member
Posts: 16
Joined: Wed Aug 17, 2011 2:03 pm

Re: Debian Squeeze source install: libtorrent upgrade?

Post by H320 »

I just installed a fresh version with sources of 1.3-stable from the git repo and an updated libtorrent version libtorrent: 0.16.5.0.
I am the poster of this post : http://forum.deluge-torrent.org/viewtop ... =7&t=37451 which treats of this subject.

I propose here a simple version to install the latest stable version of deluge with latest libtorrent release.

Deluge installation: (git clone will create a sub folder)

Code: Select all

git clone -b 1.3-stable git://deluge-torrent.org/deluge.git
python setup.py build
checkinstall python setup.py install
libtorrent-rasterbar installation: (no need to do the manual python build. The make procedure will do all the job)

Code: Select all

wget http://libtorrent.googlecode.com/files/libtorrent-rasterbar-0.16.5.tar.gz
tar xvzf libtorrent-rasterbar-0.16.5.tar.gz
cd libtorrent-rasterbar-0.16.5
./configure --enable-python-binding
make
checkinstall
I solved the linking problem with the new installed version of libtorrent with a simple:

Code: Select all

ldconfig

At the end:

Code: Select all

# python -c "import libtorrent as lt; print lt.version"
0.16.5.0

Code: Select all

# deluge -v
deluge: 1.3.5-dev
libtorrent: 0.16.5.0
Hope this will help others with a simple version of this HOWTO.
Post Reply