Installing Deluge on CentOS

General support for problems installing or using Deluge
Post Reply
gembry
Member
Member
Posts: 16
Joined: Tue Jan 31, 2012 7:40 am

Installing Deluge on CentOS

Post by gembry »

I'm trying to install Deluge on a VPS running CentOS 6 32-bit. There seems to be a Deluge package here, but I'm happy to install from source too.

The problem I'm having is to do with python-libtorrent and it looks like it will affect either method. There don't seem to be any packages for it anywhere so I'm trying install from this source following these instructions. First up have I got something completely wrong so far?

If not, running ./configure in the extracted directory resulted in these errors after installing gcc (yum install gcc):

configure: error: in `/root/libtorrent-rasterbar-0.15.9':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check

I'm not sure how to fix these problems and moreover whether I'm heading in the wrong direction. How should I proceed?
Last edited by gembry on Wed Feb 01, 2012 4:22 am, edited 2 times in total.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Installing Deluge on CentOS

Post by Cas »

First google result for 'c++ preprocessor /lib/cpp fails sanity check centos'

Please do not use short urls on the forum as we have no idea where they are linking to and could be spam. Use the bbcode URL tag instead.
gembry
Member
Member
Posts: 16
Joined: Tue Jan 31, 2012 7:40 am

C compiler errors on building libtorrent with Python

Post by gembry »

Hi,

I was getting the "ImportError: No module named libtorrent" error, and so I'm trying to install libtorrent from source on CentOS 6 32-bit.

Following this tutorial to install, I got this error on './configure --enable-python-binding', and so installed the python-devel package. That fixed it, and may or may not be related to my current error.

Now, on 'python setup.py build' I get this scary looking compiler error:

Code: Select all

{standard input}: Assembler messages:
{standard input}:58591: Warning: end of file not at end of a line; newline inserted
{standard input}:60251: Error: undefined symbol `.LLSDATT14378' in operation
{standard input}:60254: Error: undefined symbol `.LLSDACSE14378' in operation
{standard input}:60260: Error: undefined symbol `.LFB1' in operation
gcc: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
error: command 'gcc' failed with exit status 1
The full output is here. I know this isn't really a libtorrent forum, but I was hoping that someone would have an idea as to what to do. Any ideas?

On another note, is there a better way to install libtorrent than this python binding method?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Installing Deluge on CentOS

Post by Cas »

I assume you installed gcc-c++ as per the link I posted?

I realise these are strange errors however if you search google for "gcc: Internal error: Killed (program cc1plus)" the second result suggests that error is either an issue either with gcc or you are running out of memory, and to me the later sounds more plausible.
gembry
Member
Member
Posts: 16
Joined: Tue Jan 31, 2012 7:40 am

Re: Installing Deluge on CentOS

Post by gembry »

Thanks, apologies for my stupidity.

I'm now running this off a vps with more memory, which has avoided the previous problem but revealed that on 'python setup.py build' this occurs:

Code: Select all

/usr/bin/ld: cannot find -ltorrent-rasterbar
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1
According to here (near the bottom) this means the libtorrent shared library is missing, and I'm not sure where to obtain it. Is it possible that the shared library just isn't referenced correctly and I need to change some configuration?

Having a look around the system, /usr/lib/libtorrent.so.11.0.6 is present, is this the shared library?

[EDIT] Yeah, gcc-c++ is installed now.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Installing Deluge on CentOS

Post by Cas »

This link you posted is actually for the other libtorrent-rakshasa (which is only for rtorrent) and not the libtorrent-rasterbar that we use.

As for the error I am not sure why that should occur but I have asked the libtorrent dev.
gembry
Member
Member
Posts: 16
Joined: Tue Jan 31, 2012 7:40 am

Re: Installing Deluge on CentOS

Post by gembry »

Is there any update on this?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Installing Deluge on CentOS

Post by Cas »

I didn't get a reply to the question on IRC however it is usually better to ask on the mailing list, which you can do yourself: http://libtorrent.com
Post Reply