Has anyone tried Deluge?

Questions regarding modifying the torrent engine or download station may go here.
Forum rules
Please note the disclaimer before modifying your Synology Product.

Re: Has anyone tried Deluge?

Postby agnaramasi » Sun Sep 26, 2010 4:44 pm

I was actually able to get deluge running on my DS-409 today and can successfully connect to it with the thin client. Its really fantastic!

The main problem is compiling the python bindings for libtorrent-rasterbar, which depends on the boost C++ libraries. The boost packages available in optware do not work for some reason, and I had to build and install the necessary libraries and headers from source. Once libtorrent-rasterbar python bindings were installed, building and installing deluge was no problem. It works great.
agnaramasi
I'm New!
I'm New!
 
Posts: 7
Joined: Wed Feb 17, 2010 9:07 pm

Re: Has anyone tried Deluge?

Postby Xice » Thu Feb 03, 2011 9:10 pm

agnaramasi wrote:I was actually able to get deluge running on my DS-409 today and can successfully connect to it with the thin client. Its really fantastic!

The main problem is compiling the python bindings for libtorrent-rasterbar, which depends on the boost C++ libraries. The boost packages available in optware do not work for some reason, and I had to build and install the necessary libraries and headers from source. Once libtorrent-rasterbar python bindings were installed, building and installing deluge was no problem. It works great.


Can you make some sort of tutorial how to install deluge?
DS210+ | DSM 3.0-1354 | 2x 2TB WD Caviar Green | Download center/ftp server

Netgear GS608 Gigabit Switch
Xice
I'm New!
I'm New!
 
Posts: 7
Joined: Fri Nov 19, 2010 2:17 pm

Re: Has anyone tried Deluge?

Postby westernmagic » Sat Feb 05, 2011 2:13 pm

im trying to install deluge, but the compilation of libtorrent is taking aaages... and i dont feel too confident about cross-compiling :-( but i have come up with this script:
Code: Select all
ipkg update
ipkg install \
   bash \
   binutils \
   boost-date-time \
   boost-dev \ # Not sure if needed
   boost-filesystem \
   boost-iostreams \
   boost-python \
   gcc \
   gettext \
   geoip \ # Not sure if needed
   gzip \
   libc-dev \
   libsdtc++ \
   openssl \
   openssl-dev \
   python26 \
   py26-mako \
   py26-openssl \
   py26-simplejson \
   py26-setuptools \
   py26-twisted \
   svn \
   tar \
   wget \
   zlib

ln -s /opt/bin/bash /bin/bash # For script execution

wget http://download.deluge-torrent.org/source/deluge-1.3.1.tar.gz
tar -xvf deluge-1.3.1.tar.gz
cd deluge-1.3.1

/opt/local/bin/python2.6 setup.py clean -a
/opt/local/bin/python2.6 setup.py build
/opt/local/bin/python2.6 setup.py install


i suggest you run it in screen and detach it terminal; my libtorrent has been compiling for a good half day now, and it doesnt seem to have gotten far... in order to do that you would do:
Code: Select all
ipkg update
ipkg install screen

screen -S deluge

where you would run the first script. then you can press "Ctrl-A" followed by "d" to detach the terminal. the script will continue to run in the background, even if you log out of ssh!
to reattach do:
Code: Select all
screen -S deluge -r


hope this helps, and as i said, i havent prooven that it works yet :P

cheers
wm
westernmagic
I'm New!
I'm New!
 
Posts: 1
Joined: Fri Feb 04, 2011 3:37 pm

Re: Has anyone tried Deluge?

Postby trvrnrth » Wed Feb 23, 2011 1:29 am

To second agnaramasi's earlier post that this is possible I got the deluge daemon up and running on my DS211 at the weekend. It was a bit of a faff but certainly worth it as the thin client/server setup is streets ahead of the web interface.

I haven't got the precise steps written down but they go something like the following.

Install the following with ipkg packages: coreutils python26 py26-beaker py26-mako py26-openssl py26-setuptools py26-simplejson py26-twisted py26-zope-interface.

It's worth noting that I had to manually pull down wget-ssl and remove wget and install it in it's place to satisfy the coreutils dependency. You may prefer to install the necessary build packages separately.

As you can see I chose to compile against python 2.6 (2.5 may well work but I didn't try). If you're using 2.6 the ipkg provided python 2.6 distutils config (/opt/lib/python2.6/distutils/distutils.cfg) appears to point at the python 2.5 site packages directory after installation so that needs correcting first.

Download and compile boost with the date-time, filesystem, boost-iostreams and python libraries making sure to point the config at the python binary of your choosing. I chose to install to /opt though /opt/local (which I think was the default) will probably work too. I can't confirm whether the boost libraries in ipkg work or not as I went straight down the compile from source route, you might want to give them a shot first as it saves a bit of effort and compile time. For reference 1.45.0 was the latest version when I did this and worked fine for me (see build instructions at http://www.boost.org/doc/libs/1_46_0/more/getting_started/unix-variants.html#easy-build-and-install).

Next up, grab the libtorrent-rasterbar source and run the steps for building with autotools at http://www.rasterbar.com/products/libtorrent/building.html#building-with-autotools to build a release build of the library. Don't forget to build the python binding using setup.py as outlined at http://www.rasterbar.com/products/libtorrent/python_binding.html#building-using-setup-py. Again I chose to install to /opt but /opt/local ought to work too.

I found the ipkg provided pthreads library was broken so if you find the libtorrent configure above fails to find/link against pthreads (and subsequently find the boost libraries) then follow the resolution at http://forum.synology.com/enu/viewtopic.php?f=90&t=30132&p=119287&hilit=pthread#p119287. This had me stumped for some time as the configure output/log doesn't suggest that the failure to link is actually a problem and only bails when trying to find the boost libraries.

Once that lot's done then you should be able to download the deluge source and build with no problems. If it starts trying to build the bundled libtorrent library then there's something wrong with the libtorrent-rasterbar build/installation above which you'll need to check.

I hope these pointers help others get this up and running.

Cheers,
Trev
trvrnrth
I'm New!
I'm New!
 
Posts: 3
Joined: Fri Feb 18, 2011 1:19 pm

Re: Has anyone tried Deluge?

Postby Domini0n » Mon Feb 28, 2011 10:37 pm

Hi,

I'm also trying to compile Deluge on my NAS, only I'm trying it on my QNAP TS-419P. As the systems are both ARM based I thought this shouldn't make a difference. I am however running into the problem with building the libtorrent-rasterbar. I don't understand what is meant by "You need to add -lpthread to the linker parameters". Can you explain to me how to do this?

I have moved the pthreads and done as described in the thread you link to solve the issue, I'm however getting stuck at the add -lpthread to the linker part.

I've tried the following:

Code: Select all
./configure --enable-python-binding --with-boost-thread=lpthreads


This fails and it still says the following:
Code: Select all
Checking for posix thread support:
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -lpthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether to check for GCC pthread/shared inconsistencies... yes
checking whether -lpthread fixes that... yes

Checking for boost libraries:
checking for boostlib >= 1.36... yes
checking whether the Boost::System library is available... yes
configure: error: Boost.System library not found. Try using --with-boost-system=lib


I also tried as suggested after the error message and did:
Code: Select all
./configure --enable-python-binding --with-boost-system=lib

AND
Code: Select all
./configure --enable-python-binding --with-boost-system=lpthreads


This results in a different error:
Code: Select all
Checking for posix thread support:
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -lpthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether to check for GCC pthread/shared inconsistencies... yes
checking whether -lpthread fixes that... yes

Checking for boost libraries:
checking for boostlib >= 1.36... yes
checking whether the Boost::System library is available... yes
checking for exit in -llpthreads... no
checking for exit in -lboost_system-lpthreads... no
configure: error: Could not link against boost_system-lpthreads !


So I'm unable to get libtorrent-rasterbar compiled... :cry:

I'm also wondering if you guys are able to connect to the daemon using GTK++ from a Winodws machine, or are you guys using the web GUI.

Regards,
Domini0n
Domini0n
I'm New!
I'm New!
 
Posts: 3
Joined: Mon Feb 28, 2011 10:35 pm

Re: Has anyone tried Deluge?

Postby Domini0n » Sat Mar 05, 2011 11:35 pm

Nobody able to help me out with this?¿

I just need a bid more info on what it means and I'm able to finish this compile.

Regards,

Domini0n
Domini0n
I'm New!
I'm New!
 
Posts: 3
Joined: Mon Feb 28, 2011 10:35 pm

Re: Has anyone tried Deluge?

Postby trvrnrth » Mon Mar 07, 2011 1:08 am

Hi,

You shouldn't need to be changing the configure command if you've got boost and a working pthreads library in place (which your output logs seem to suggest is the case). A simple "./configure --enable-python-binding" should do the job.

Regards,
Trevor
trvrnrth
I'm New!
I'm New!
 
Posts: 3
Joined: Fri Feb 18, 2011 1:19 pm

Re: Has anyone tried Deluge?

Postby Domini0n » Mon Mar 07, 2011 9:24 pm

Thank you for the response.

But when I run the command like you suggest I get the same error as the first output:

Code: Select all
Checking for posix thread support:
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -lpthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether to check for GCC pthread/shared inconsistencies... yes
checking whether -lpthread fixes that... yes

Checking for boost libraries:
checking for boostlib >= 1.36... yes
checking whether the Boost::System library is available... yes
configure: error: Boost.System library not found. Try using --with-boost-system=lib


I have search the NET but am unable to figure out what is causing this, or how to resolve the issue. Do you have any other suggestions?

Regards,
Domini0n
Domini0n
I'm New!
I'm New!
 
Posts: 3
Joined: Mon Feb 28, 2011 10:35 pm

Re: Has anyone tried Deluge?

Postby kyrannian » Mon May 30, 2011 1:55 am

Hi,

Try editing your setup.py and changing /usr/include to /opt/include where your boost libraries are residing (if installed from Optware).

I have a basic post here on how to get it all compiling
http://systemsnotebook.blogspot.com/201 ... ology.html

Cheers,

Ky
kyrannian
I'm New!
I'm New!
 
Posts: 3
Joined: Fri May 06, 2011 6:21 am

Re: Has anyone tried Deluge?

Postby Xice » Wed Jun 29, 2011 12:32 pm

I managed to install deluge, that when I run deluge-web I CAN get to the webUI (localhost:8112), but I can't add any torrents? :-S

Can somebody explain me what I have to do?
DS210+ | DSM 3.0-1354 | 2x 2TB WD Caviar Green | Download center/ftp server

Netgear GS608 Gigabit Switch
Xice
I'm New!
I'm New!
 
Posts: 7
Joined: Fri Nov 19, 2010 2:17 pm

Re: Has anyone tried Deluge?

Postby nic0 » Mon Oct 03, 2011 10:42 pm

Domini0n wrote:Thank you for the response.

But when I run the command like you suggest I get the same error as the first output:

Code: Select all
Checking for posix thread support:
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -lpthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether to check for GCC pthread/shared inconsistencies... yes
checking whether -lpthread fixes that... yes

Checking for boost libraries:
checking for boostlib >= 1.36... yes
checking whether the Boost::System library is available... yes
configure: error: Boost.System library not found. Try using --with-boost-system=lib


I have search the NET but am unable to figure out what is causing this, or how to resolve the issue. Do you have any other suggestions?

Regards,
Domini0n


Hi Domini0n,

i can send you a privat msg, so i have to ask in here. did you get it to work withyour qnap ? i have one myself and have problem to figure out how to compile deluge, can you please send me a pm or add me to msn if you want to share your knowledge my msn is. canes45 (AT) gmail.com thanks in advance.

/nic0
nic0
I'm New!
I'm New!
 
Posts: 1
Joined: Mon Oct 03, 2011 10:36 pm

Re: Has anyone tried Deluge?

Postby monochromec » Sat Oct 08, 2011 8:47 pm

Just in case you're stumbling across deluge pulling down the built-in libtorrent library although you swear you've built and installed the rasterbar version as outlined above: python CAN be tricky!

I faced pretty much this issue when I tried to follow kyrannian short tutorial on building and installing version 1.3.3. When digging deeper into deluge's setup.py script, I discovered that - through various dependencies in subsequent modules that this script uses to check if libtorrent with the correct version is installed - it fails by generating an exception also when chardet is not installed. You THINK that's a libtorrent-related issue when it actually failes to find the chardet python module...

For those with the time: try stepping through setup.py using the python debugger and you'll know what I mean...
monochromec
Trainee
Trainee
 
Posts: 12
Joined: Tue Aug 30, 2011 10:44 am

Re: Has anyone tried Deluge?

Postby jimmy0410 » Thu Feb 23, 2012 4:23 am

I'm trying to load all my server apps from my main Windows 7 machine to my 209. I've already got flexget and subsonic, but I'm having trouble with deluge. Read through this post prolly a dozen times, but have now been stuck for some time. I can't make my configure file for libtorrent via autoconf because I get the error that it can't find autom4ke. Idk, this is prolly a super noob question, and I'll admit I'm no linux genius, but I can usually hammer these things out eventually. I also did not compile boost, rather just installed appropriate packers via ipkg.
jimmy0410
I'm New!
I'm New!
 
Posts: 4
Joined: Thu Feb 23, 2012 4:16 am

Re: Has anyone tried Deluge?

Postby jimmy0410 » Fri Feb 24, 2012 12:34 am

Having trouble creating configure file for libtorrent. When trying to autoconf configure.ac I get error:


/opt/bin/autoconf: exec: line 498: /opt/bin/autom4te: not found

Although I'll cd into /opt/bin and the script is clearly there...
jimmy0410
I'm New!
I'm New!
 
Posts: 4
Joined: Thu Feb 23, 2012 4:16 am

Re: Has anyone tried Deluge?

Postby jimmy0410 » Fri Feb 24, 2012 7:44 am

Well I'm making progress. Really need ta get Deluge working so I can use flexget! : ) I downloaded libtorrent tarball and am trying to get ./configure to work right. Am getting the same error as Domini0n. Here's my output..


Checking for posix thread support:
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -lpthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
checking for pthread-config... no

Checking for boost libraries:
checking for boostlib >= 1.36... yes
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system... no
checking for exit in -lboost_system... (cached) no
configure: error: Could not link against boost_system !
jimmy0410
I'm New!
I'm New!
 
Posts: 4
Joined: Thu Feb 23, 2012 4:16 am

PreviousNext

Return to Torrent Engines/Download Station Mods

Who is online

Users browsing this forum: No registered users and 1 guest