Compiling Deluge on CentOS

General support for problems installing or using Deluge
Post Reply
jreid42
New User
New User
Posts: 3
Joined: Tue Sep 29, 2009 1:44 pm

Compiling Deluge on CentOS

Post by jreid42 »

Okay, I have installed all the pre-requried packages on the list in the instructions; I think they are all the right version ( I compiled them rather them as CentOS is ancient in terms of packages ).

I run python setup.py build and get the following (please HELP!):

./libtorrent/include/libtorrent/storage.hpp:218: error: expected â,â or â...â before â<â token
./libtorrent/include/libtorrent/storage.hpp:220: error: âboost::functionâ has not been declared
./libtorrent/include/libtorrent/storage.hpp:220: error: expected â,â or â...â before â<â token
./libtorrent/include/libtorrent/storage.hpp:223: error: âboost::functionâ has not been declared
./libtorrent/include/libtorrent/storage.hpp:223: error: expected â,â or â...â before â<â token
./libtorrent/include/libtorrent/storage.hpp:227: error: âboost::functionâ has not been declared
./libtorrent/include/libtorrent/storage.hpp:227: error: expected â,â or â...â before â<â token
./libtorrent/include/libtorrent/storage.hpp:233: error: âboost::functionâ has not been declared
./libtorrent/include/libtorrent/storage.hpp:233: error: expected â,â or â...â before â<â token
./libtorrent/include/libtorrent/storage.hpp:235: error: âboost::functionâ has not been declared
./libtorrent/include/libtorrent/storage.hpp:235: error: expected â,â or â...â before â<â token
./libtorrent/include/libtorrent/storage.hpp:238: error: âboost::functionâ has not been declared
./libtorrent/include/libtorrent/storage.hpp:238: error: expected â,â or â...â before â<â token
./libtorrent/include/libtorrent/storage.hpp:244: error: âboost::functionâ has not been declared
./libtorrent/include/libtorrent/storage.hpp:244: error: expected â,â or â...â before â<â token
./libtorrent/include/libtorrent/storage.hpp:248: error: âboost::functionâ has not been declared
./libtorrent/include/libtorrent/storage.hpp:248: error: expected â,â or â...â before â<â token
./libtorrent/include/libtorrent/storage.hpp:252: error: âboost::functionâ has not been declared
./libtorrent/include/libtorrent/storage.hpp:252: error: expected â,â or â...â before â<â token
./libtorrent/include/libtorrent/storage.hpp:255: error: âboost::functionâ has not been declared
./libtorrent/include/libtorrent/storage.hpp:255: error: expected â,â or â...â before â<â token
error: command 'gcc' failed with exit status 1

I am using Boost 1.40
I am using GCC 4.1.2
I am using Python 2.6

Thanks.
zveanturz

Re: Compiling Deluge on CentOS

Post by zveanturz »

Hi there,

I've got the same problem maybe it s a problem of PATH variable but i ve fixed the problem this is not a final solution but an easy way to solve this.

Try to find where is located the file function.hpp from the boost library:
updatedb
locate function.hpp
For me this file is in the directory /usr/include/boost/function.hpp
after unpacking the Deluge source code i've modified the file storage.hpp:
I've added the following line to the file storage.hpp( ./deluge-1.1.9/libtorrent/include/libtorrent/storage.hpp) :
#include "/usr/include/boost/function.hpp"
Save the file :)

After i ve compiled the source code:
python setup.py build
then install it
python setup.py install
And now everything works well.

GCC: 4.3.3
BOOST: 1.40.0
PYTHON: 2.6.2
Post Reply