raspberry pi compiling libtorrent 1.1.6

General support for problems installing or using Deluge
boomclick
Member
Member
Posts: 22
Joined: Fri Jan 19, 2018 6:31 pm

raspberry pi compiling libtorrent 1.1.6

Post by boomclick »

on my rpi3 i'm running raspbian. i'm trying to install libtorrent 1.1.6 from source according to the directions at http://dev.deluge-torrent.org/wiki/Building/libtorrent. it supposedly works fine until after i enter python -c "import libtorrent; print libtorrent.version", at this point it returns the error:

Code: Select all

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: /usr/local/lib/python2.7/dist-packages/libtorrent.so: undefined symbol: _ZN10libtorrent13upnp_categoryEv
this happens no matter how many times i remove/recompile/install libtorrent-rasterbar. also, dpkg --list | grep libtorrent lists

Code: Select all

ii  libtorrent-rasterbar            1.1.6-1                           armhf        Package created with checkinstall 1.6.2
ii  libtorrent-rasterbar9           1.1.1-1                           armhf        C++ bittorrent library by Rasterbar Software
ii  python-libtorrent               1.1.1-1                           armhf        Python bindings for libtorrent-rasterbar
i believe the two i's before the package name means that it's partially installed, but this happens no matter how many times i try installing. is there a build dependency for raspbian not listed in the tutorial? how do i install libtorrent-rasterbar-1.1.6-1?
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: raspberry pi compiling libtorrent 1.1.6

Post by shamael »

the easiest way to install Deluge on a Debian like distribution (Raspian) is through the PPA repository (Deluge+libtorrent). Depending of your Raspian version

-based on Jessie follow the PPA tutorial: http://dev.deluge-torrent.org/wiki/Inst ... ian/Jessie
-based on Stretch read my post: http://forum.deluge-torrent.org/viewtop ... ch#p227568

The actual distributed version is Deluge 1.3.15 with Libtorrent 1.0.11
boomclick
Member
Member
Posts: 22
Joined: Fri Jan 19, 2018 6:31 pm

Re: raspberry pi compiling libtorrent 1.1.6

Post by boomclick »

i can already install deluge fine from the repository. i'm looking to compile deluge 2.0 for testing on my raspberry pi. i need libtorrent >=1.1.2 for that. i saw that https://launchpad.net/~deluge-team/+arc ... tu/develop has libtorrent 1.1.3, but not for raspbian. my version is the latest version of stretch, 2017-11-29, if that helps. i see options for ubuntu and debian, but not for arm architecture raspbian.
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: raspberry pi compiling libtorrent 1.1.6

Post by shamael »

Backup first as always then give a try to artful version, it seems to have a compiled version of libtorrent 1.1.3
https://launchpad.net/~deluge-team/+arc ... d/14253072

Add the repo/refresh apt-cache first, then you should be good to go. You can grab/adapt the lines from the Jessie wiki to target the correct repository. something like (adapt if needed)
sudo apt-get install -t artful libtorrent-rasterbar9 python-libtorrent
boomclick
Member
Member
Posts: 22
Joined: Fri Jan 19, 2018 6:31 pm

Re: raspberry pi compiling libtorrent 1.1.6

Post by boomclick »

i added the repo. packages look fresh. when i type sudo apt-get install -t artful libtorrent-rasterbar9 python-libtorrent, it gives an error:

Code: Select all

pi@raspberrypi:/home $ sudo apt-get install -t artful libtorrent-rasterbar9 python-libtorrent
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libtorrent-rasterbar9 : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
 python-libtorrent : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
E: Unable to correct problems, you have held broken packages.
while i have libssl1.1 and libssl1.0.2 both installed. i tried uninstalling them, reinstalling them individually, same error. is this an issue with raspbian headless that libssl can't be found? is there a way to remedy this?
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: raspberry pi compiling libtorrent 1.1.6

Post by shamael »

check my last post http://forum.deluge-torrent.org/viewtop ... =7&t=54783 and install libssl 1.0.0
boomclick
Member
Member
Posts: 22
Joined: Fri Jan 19, 2018 6:31 pm

Re: raspberry pi compiling libtorrent 1.1.6

Post by boomclick »

thanks. based on your post, i was able to install the dependencies for deluge 2.0. i added deb http://deb.debian.org/debian jessie-backports main contrib non-free to my sources.list file. i was unable to find a signing key, so based on https://stackoverflow.com/questions/465 ... repository i was able to trust the repository. once i did apt-update, it let me install libssl1.0.0. then python-libtorrent, then deluge 2.0. thanks schamael.
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: raspberry pi compiling libtorrent 1.1.6

Post by shamael »

You're welcome ;)
garryjoshi
New User
New User
Posts: 1
Joined: Sat Feb 10, 2018 11:42 am

Re: raspberry pi compiling libtorrent 1.1.6

Post by garryjoshi »

shamael wrote:check my last post http://forum.deluge-torrent.org/viewtop ... =7&t=54783 and install libssl 1.0.0
I was able to successfully install it. Thank you so much for the reference Shamael :)

Garry Joshi
Showbox Mobdro Tutuapp
Last edited by garryjoshi on Tue Feb 13, 2018 9:20 am, edited 1 time in total.
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: raspberry pi compiling libtorrent 1.1.6

Post by shamael »

You're welcome ;)
Post Reply