I use pythonbrew, venv and pip mostly for python dev - I am a relative novice. I've spent some time trying to get graph-tool installed and have failed badly. I have downloaded the src (graph-tool-2.2.18) and can not ./configure . I am on Debian squeeze and have tried with apt-get's boost and with a built-from-source boost but always get the same error - as shown below. Versions of python and exact checks vary depending on environment and options to configure. Below is with a 2.7.2 python environment and this command "./configure --with-boost-python=/home/hleeney/usr/local/lib/libboost_python.a". Any help is greatly appreciated. =========================== Using python version: 2.6.6 =========================== checking for boostlib >= 1.38.0... yes checking whether the Boost::Python library is available... yes checking for exit in -l/home/hleeney/usr/local/lib/libboost_python.a... no checking for exit in -l/home/hleeney/usr/local/lib/libboost_python.a-py2.6... no checking for exit in -l/home/hleeney/usr/local/lib/libboost_python.a-2.6... no checking for exit in -lboost_python-/home/hleeney/usr/local/lib/libboost_python.a... no checking for exit in -lboost_python-/home/hleeney/usr/local/lib/libboost_python.a-py2.6... no checking for exit in -lboost_python-/home/hleeney/usr/local/lib/libboost_python.a-2.6... no checking for exit in -lboost_python... no checking for exit in -lboost_python-py2.6... no checking for exit in -lboost_python-2.6... no checking for exit in -lboost_python-mt... no checking for exit in -lboost_python-mt-py2.6... no checking for exit in -lboost_python-mt-2.6... no configure: error: No usable boost::python found
Hi, Yousay in the mail: Below is with a 2.7.2 python environment and this command "./configure --with-boost-python=/home/hleeney/usr/local/lib/libboost_python.a". And your log says: ===========================
Using python version: 2.6.6
So maybe there is a pb here? Guillaume
Oh sorry, I have a bunch of log outputs on my terminal - I just picked the wrong one. I have been permutating versions ... I get the same result in 2.72. Guillaume Gay wrote On 15/11/2012 12:37:
Hi, Yousay in the mail: Below is with a 2.7.2 python environment and this command "./configure --with-boost-python=/home/hleeney/usr/local/lib/libboost_python.a".
And your log says:
===========================
Using python version: 2.6.6
So maybe there is a pb here?
Guillaume
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
Ni! Hi Hugo, Your config.log very likely has a more useful description of the issue. Take a look and share it here. Good luck, q. On 15-11-2012 10:40, Hugo Leeney wrote:
Oh sorry, I have a bunch of log outputs on my terminal - I just picked the wrong one. I have been permutating versions ... I get the same result in 2.72.
Hi Hugo, On 11/15/2012 01:18 PM, Hugo Leeney wrote:
I use pythonbrew, venv and pip mostly for python dev - I am a relative novice. I've spent some time trying to get graph-tool installed and have failed badly. I have downloaded the src (graph-tool-2.2.18) and can not ./configure .
I am on Debian squeeze and have tried with apt-get's boost and with a built-from-source boost but always get the same error - as shown below. Versions of python and exact checks vary depending on environment and options to configure. Below is with a 2.7.2 python environment and this command "./configure --with-boost-python=/home/hleeney/usr/local/lib/libboost_python.a". Any help is greatly appreciated.
If you have installed boost in a non-standard directory as you did, you have to modify all the necessary paths so that the configure script has a way of finding it. Firstly note that you could have used the packaged boost from your distribution and avoided all this. But if you really want to do it this way, assuming all your libraries are installed in "/home/hleeney/usr/local/", the following would probably suffice: ./configure LDFLAGS="-L/home/hleeney/usr/local/" CPPFLAGS="-I/home/hleeney/usr/local/include" Note that you don't have to specify --with-boost-python, unless the library is installed with a strange name which the configure script cannot discover (which sometimes happen on weird distros, but not if you install it by hand). Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
Thanks a lot Tiago, I did actually try with the distro boost (libboost-all-dev) but that failed with the same error. I tried your command line (LDFLAGS and CPPFLAGS) with the built-from-source boost, and that failed again with the same error. I'm still interested in finding out whats going wrong. I have had to cut my losses and do something completely different so no pressure - also its got to be a problem with my dev environment.. or me. Tiago de Paula Peixoto wrote On 15/11/2012 15:09:
Hi Hugo,
On 11/15/2012 01:18 PM, Hugo Leeney wrote:
I use pythonbrew, venv and pip mostly for python dev - I am a relative novice. I've spent some time trying to get graph-tool installed and have failed badly. I have downloaded the src (graph-tool-2.2.18) and can not ./configure .
I am on Debian squeeze and have tried with apt-get's boost and with a built-from-source boost but always get the same error - as shown below. Versions of python and exact checks vary depending on environment and options to configure. Below is with a 2.7.2 python environment and this command "./configure --with-boost-python=/home/hleeney/usr/local/lib/libboost_python.a". Any help is greatly appreciated. If you have installed boost in a non-standard directory as you did, you have to modify all the necessary paths so that the configure script has a way of finding it.
Firstly note that you could have used the packaged boost from your distribution and avoided all this. But if you really want to do it this way, assuming all your libraries are installed in "/home/hleeney/usr/local/", the following would probably suffice:
./configure LDFLAGS="-L/home/hleeney/usr/local/" CPPFLAGS="-I/home/hleeney/usr/local/include"
Note that you don't have to specify --with-boost-python, unless the library is installed with a strange name which the configure script cannot discover (which sometimes happen on weird distros, but not if you install it by hand).
Cheers, Tiago
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
On 11/15/2012 06:32 PM, Hugo Leeney wrote:
Thanks a lot Tiago,
I did actually try with the distro boost (libboost-all-dev) but that failed with the same error. I tried your command line (LDFLAGS and CPPFLAGS) with the built-from-source boost, and that failed again with the same error.
As Alexandre said in a previous email, there is little we can say without seeing your config.log file, which says _why_ it failed to find the library. Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
Taking a feeble step into the world of configure I see it couldn't find a 'libboost_python-mt-2.7.a'. I symlinked to libboost_python.a and ./configure --LDFLAGS.. -CPPFLAGS got further. I did notice earlier that the boost builds weren't creating libs with the naming convention spec'd in the how-to-build doc.. Now its not building for want of scipy .. but now that I'm getting my metaphorical baby spoon somewhere near my fat face I might get lucky and feed myself the rest. Thank you. The config.log for the original problem is attached FYI. Cheers On 11/15/12, Tiago de Paula Peixoto <tiago@skewed.de> wrote:
On 11/15/2012 06:32 PM, Hugo Leeney wrote:
Thanks a lot Tiago,
I did actually try with the distro boost (libboost-all-dev) but that failed with the same error. I tried your command line (LDFLAGS and CPPFLAGS) with the built-from-source boost, and that failed again with the same error.
As Alexandre said in a previous email, there is little we can say without seeing your config.log file, which says _why_ it failed to find the library.
Cheers, Tiago
-- Tiago de Paula Peixoto <tiago@skewed.de>
-- Hugo Leeney hugo.leeney@gmail.com +353 87 782 8053
participants (4)
-
Alexandre Hannud Abdo -
Guillaume Gay -
Hugo Leeney -
Tiago de Paula Peixoto