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.
Compiling Deluge on CentOS
Re: Compiling Deluge on CentOS
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:
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) :

After i ve compiled the source code:
GCC: 4.3.3
BOOST: 1.40.0
PYTHON: 2.6.2
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:
For me this file is in the directory /usr/include/boost/function.hppupdatedb
locate 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) :
Save the file#include "/usr/include/boost/function.hpp"

After i ve compiled the source code:
then install itpython setup.py build
And now everything works well.python setup.py install
GCC: 4.3.3
BOOST: 1.40.0
PYTHON: 2.6.2