[Solved] Difficulty building 1.3.3 in Hardy from source

General support for problems installing or using Deluge
Post Reply
Ashex
Member
Member
Posts: 12
Joined: Thu Jan 05, 2012 6:36 am

[Solved] Difficulty building 1.3.3 in Hardy from source

Post by Ashex »

I'm setting up Crystalbuntu for a friend (slightly customized Ubuntu hardy for apple tv) and am trying to get deluged up and running. I couldn't get deluge to start similar to this person due to a bug related to the required version of libtorrent So I decided to go the route of building from source.

I've installed all the dependencies and downloaded the 1.3.3 tarball, however when I try to compile it fails on something related to libboost:

Code: Select all

/usr/local/include/boost/python/object_core.hpp: In constructor âboost::python::api::object::object(const T&) [with T = boost::python::tuple]â:
/usr/local/include/boost/python/numeric.hpp:121:   instantiated from âvoid boost::python::numeric::array::resize(const Sequence&) [with Sequence = boost::python::tuple]â
/usr/local/include/boost/preprocessor/iteration/detail/local.hpp:37:   instantiated from here
/usr/local/include/boost/python/object_core.hpp:334: error: âobject_base_initializerâ was not declared in this scope
error: command 'gcc' failed with exit status 1

Would anyone have an idea as to what's causing this to fail?
Last edited by Ashex on Fri Jan 06, 2012 4:01 am, edited 1 time in total.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Difficulty building 1.3.3 in Hardy from source

Post by Cas »

Why can you not use the libtorrent from PPA?

I am afraid that we can provide very little support to building libtorrent especially on such an old Ubuntu.
Ashex
Member
Member
Posts: 12
Joined: Thu Jan 05, 2012 6:36 am

Re: Difficulty building 1.3.3 in Hardy from source

Post by Ashex »

I had suspected as much, it's rather unfortunate that I'm stuck on Hardy.

I did try using the PPA in the beginning, the issue is that deluged fails to start with the error:

Code: Select all

ImportError: This version of Deluge requires libtorrent >=0.14.5.0!
The version of python-libtorrent installed from the ppa is 0.14.10

I suppose I can try grabbing 0.14.5.0 but I'll have to chase down older versions of packages due to how dpkg checks versions (1.34.1 is now the same as 1.34.1-4).
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Difficulty building 1.3.3 in Hardy from source

Post by Cas »

That message can only have come from an older Deluge 1.2 so you must have also installed Deluge from that PPA.

You need to remove the installed Deluge and only install libtorrent from PPA then install Deluge 1.3.3 from source.
Ashex
Member
Member
Posts: 12
Joined: Thu Jan 05, 2012 6:36 am

Re: Difficulty building 1.3.3 in Hardy from source

Post by Ashex »

I made sure that all deluge packages were removed then installed python-libtorrent from PPA (verified that it's 0.14.10) and libtorrent-rasterbar-dev in addition.

ran python setup.py build and it failed with the same error. It's also still building the libtorrent extension, I'm assuming it shouldn't do this since I've installed the package from PPA?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Difficulty building 1.3.3 in Hardy from source

Post by Cas »

The only packages you need to install are:

Code: Select all

libtorrent-rasterbar5
python-libtorrent
If the setup cannot find libtorrent then yes it will attempt to build it from source. You can test if you have libtorrent installed with this:

Code: Select all

python -c "import libtorrent as lt; print lt.version"
Ashex
Member
Member
Posts: 12
Joined: Thu Jan 05, 2012 6:36 am

Re: Difficulty building 1.3.3 in Hardy from source

Post by Ashex »

Thanks for the tip, I did some checking and found that /usr/local/bin/python is symlinked to python2.6, and python-libtorrent has been installed for python2.5.

I was simply using python when trying to build, when I used python2.5 instead I was able to build and install successfully. This is much better!

Now that I got it installed I started it with the init script, and while it started, the webui isn't all there as it looks like the files are missing. In the browser I'm seeing this error:

Code: Select all

<type 'exceptions.IOError'>: [Errno 2] No such file or directory: '/var/lib/python-support/python2.5/deluge/ui/web/index.html'
I took a look and the directory /var/lib/python-support/python2.5/deluge doesn't exist.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Difficulty building 1.3.3 in Hardy from source

Post by Cas »

Sounds like files still around from previous install, you may need to do a thorough cleanout.
Ashex
Member
Member
Posts: 12
Joined: Thu Jan 05, 2012 6:36 am

Re: Difficulty building 1.3.3 in Hardy from source

Post by Ashex »

That was the case, I did a quick find to locate all deluge related files and removed them. Did a install again from source and everything came up including the webui.


Thank you for your patience and helping me out!
Post Reply