raspdealer
Posts: 9
Joined: Tue Jun 09, 2015 8:28 pm

How to upgrade libtorrent on rpi2

Mon Oct 17, 2016 5:07 pm

Hi there,

I've found this guide: viewtopic.php?f=41&t=100043
but I already have the last version of deluge installed but with the "default" version of libtorrent.

So I tried to follow these instructions only to update libtorrent:

Code: Select all

sudo nano /etc/apt/sources.list

uncomment this line and save then exit

deb-src http://mirror.ox.ac.uk/sites/archive.ra ... /raspbian/ wheezy main contrib non-free rpi

sudo apt-get update && sudo apt-get dist-upgrade -y

sudo reboot

sudo apt-get install scons build-essential libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-thread-dev libboost-all-dev 

[i]sudo reboot
wget http://libtorrent.googlecode.com/files/ ... .13.tar.gz
tar xvzf libtorrent-rasterbar-0.16.13.tar.gz
cd libtorrent-rasterbar-0.16.13
./configure --enable-python-binding
cd bindings/python/
python setup.py build
sudo python setup.py install
cd ../..
make
sudo make install

But:
[*] I don't understand lines about uncomment sources file...
[*] The download link is dead so I've found this, is it correct?

Code: Select all

wget https://sourceforge.net/projects/libtorrent/files/libtorrent/libtorrent-rasterbar-0.16.13.tar.gz/download
[*] I read I have to do this after to avoid troubles with my existing version, but how?

Code: Select all

sudo apt-get install python-libtorrent
"then changing the apt sources to jessie and updating deluged and deluge-console"

[*]I have this error:
pi@deluge ~/libtorrent-rasterbar-0.16.13/bindings/python $ sudo python setup.py install

Code: Select all

running install
running build
running build_ext
building 'libtorrent' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -I../../include -I/usr/include -I/usr/include/python2.7 -c src/torrent_handle.cpp -o build/temp.linux-armv6l-2.7/src/torrent_handle.o -DTORRENT_USE_OPENSSL -DWITH_SHIPPED_GEOIP_H -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_DYN_LINK -DTORRENT_LINKING_SHARED
In file included from ../../include/libtorrent/torrent_handle.hpp:54:0,
                 from src/torrent_handle.cpp:7:
../../include/libtorrent/torrent_info.hpp: In member function ‘void libtorrent::torrent_info::rename_file(int, const wstring&)’:
../../include/libtorrent/torrent_info.hpp:287:43: warning: ‘void libtorrent::file_storage::rename_file(int, const wstring&)’ is deprecated (declared at ../../include/libtorrent/file_storage.hpp:206) [-Wdeprecated-declarations]
src/torrent_handle.cpp: In function ‘void set_peer_upload_limit(libtorrent::torrent_handle&, const boost::python::tuple&, int)’:
src/torrent_handle.cpp:335:58: warning: ‘void libtorrent::torrent_handle::set_peer_upload_limit(boost::asio::ip::tcp::endpoint, int) const’ is deprecated (declared at ../../include/libtorrent/torrent_handle.hpp:279) [-Wdeprecated-declarations]
src/torrent_handle.cpp: In function ‘void set_peer_download_limit(libtorrent::torrent_handle&, const boost::python::tuple&, int)’:
src/torrent_handle.cpp:340:60: warning: ‘void libtorrent::torrent_handle::set_peer_download_limit(boost::asio::ip::tcp::endpoint, int) const’ is deprecated (declared at ../../include/libtorrent/torrent_handle.hpp:281) [-Wdeprecated-declarations]
gcc: internal compiler error: Processus arrêté (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
error: command 'gcc' failed with exit status 4
How to go through? Thanks for your support


Return to “Troubleshooting”