Problem with ./configure and Boost::Python
Hi, I'm trying to install graph_tool on Centos 5.8 in a custom Python 2.7.2 environment. I have boost installed under /scratch/usr Running the following: ./configure --with-boost=/scratch/usr I get the error messages: graph-tool will be installed at: /scratch/opt/pythonbrew/pythons/Python-2.7.2/lib/python2.7/site-packages =========================== Using python version: 2.7.2 =========================== checking for boostlib >= 1.38.0... yes checking whether the Boost::Python library is available... yes checking for exit in -lboost_python... no checking for exit in -lboost_python-py2.7... no checking for exit in -lboost_python-2.7... no checking for exit in -lboost_python... (cached) no checking for exit in -lboost_python-py2.7... (cached) no checking for exit in -lboost_python-2.7... (cached) no checking for exit in -lboost_python-mt... no checking for exit in -lboost_python-mt-py2.7... no checking for exit in -lboost_python-mt-2.7... no configure: error: No usable boost::python found Is there something wrong with my boost installation? Thanks
On 01/27/2013 06:05 PM, josh.columbus.chang@gmail.com wrote:
Hi, I'm trying to install graph_tool on Centos 5.8 in a custom Python 2.7.2 environment. I have boost installed under /scratch/usr
Running the following: ./configure --with-boost=/scratch/usr
I get the error messages:
graph-tool will be installed at: /scratch/opt/pythonbrew/pythons/Python-2.7.2/lib/python2.7/site-packages =========================== Using python version: 2.7.2 =========================== checking for boostlib >= 1.38.0... yes checking whether the Boost::Python library is available... yes checking for exit in -lboost_python... no checking for exit in -lboost_python-py2.7... no checking for exit in -lboost_python-2.7... no checking for exit in -lboost_python... (cached) no checking for exit in -lboost_python-py2.7... (cached) no checking for exit in -lboost_python-2.7... (cached) no checking for exit in -lboost_python-mt... no checking for exit in -lboost_python-mt-py2.7... no checking for exit in -lboost_python-mt-2.7... no configure: error: No usable boost::python found
Is there something wrong with my boost installation?
If you run ./configure --help, you will see at list of environment variables at the end, which need to be properly set when using a non-standard environment. In your case, you need to set: CPPFLAGS="-I/scratch/usr/include" LDFLAGS="-L/scratch/usr/lib" so that the compiler can find the installed libraries. Whenever running across configure errors, it is always useful to inspect the config.log file, which contains more detailed information about errors. Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
Hi, I have a very similar situation and I have faced exactly the same error, but the mentioned solution doesn't work for me. I have installed Python 2.7.3 on CentOS 6.3. I run this command: ./configure --enable-openmp PYTHON="/usr/local/bin/python2.7" CPPFLAGS="-I/usr/local/include/python2.7" LDFLAGS="-L/usr/local/lib/python2.7" And I receive this message: =========================== Using python version: 2.7.3 =========================== checking for boostlib >= 1.38.0... yes checking whether the Boost::Python library is available... yes checking for exit in -lboost_python... no checking for exit in -lboost_python-py2.7... no checking for exit in -lboost_python-2.7... no checking for exit in -lboost_python... (cached) no checking for exit in -lboost_python-py2.7... (cached) no checking for exit in -lboost_python-2.7... (cached) no checking for exit in -lboost_python-mt... no checking for exit in -lboost_python-mt-py2.7... no checking for exit in -lboost_python-mt-2.7... no configure: error: No usable boost::python found I appreciate your help. Best, Arash -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 29 January 2013 18:48, Arash <jalalzadeh@gmail.com> wrote:
Hi,
I have a very similar situation and I have faced exactly the same error, but the mentioned solution doesn't work for me. I have installed Python 2.7.3 on
Have you installed Boost::Python compiled against that python? The configure script is complaining that it can't find Boost::Python library...
CentOS 6.3. I run this command:
./configure --enable-openmp PYTHON="/usr/local/bin/python2.7" CPPFLAGS="-I/usr/local/include/python2.7" LDFLAGS="-L/usr/local/lib/python2.7"
And I receive this message:
=========================== Using python version: 2.7.3 =========================== checking for boostlib >= 1.38.0... yes checking whether the Boost::Python library is available... yes checking for exit in -lboost_python... no checking for exit in -lboost_python-py2.7... no checking for exit in -lboost_python-2.7... no checking for exit in -lboost_python... (cached) no checking for exit in -lboost_python-py2.7... (cached) no checking for exit in -lboost_python-2.7... (cached) no checking for exit in -lboost_python-mt... no checking for exit in -lboost_python-mt-py2.7... no checking for exit in -lboost_python-mt-2.7... no configure: error: No usable boost::python found
I appreciate your help.
Best, Arash
-- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com. _______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
On Jan 29, 2013, at 6:54 PM, Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com> wrote:
On 29 January 2013 18:48, Arash <jalalzadeh@gmail.com> wrote:
Hi,
I have a very similar situation and I have faced exactly the same error, but the mentioned solution doesn't work for me. I have installed Python 2.7.3 on
Have you installed Boost::Python compiled against that python? The configure script is complaining that it can't find Boost::Python library...
CentOS 6.3. I run this command:
./configure --enable-openmp PYTHON="/usr/local/bin/python2.7" CPPFLAGS="-I/usr/local/include/python2.7" LDFLAGS="-L/usr/local/lib/python2.7"
And I receive this message:
=========================== Using python version: 2.7.3 =========================== checking for boostlib >= 1.38.0... yes checking whether the Boost::Python library is available... yes checking for exit in -lboost_python... no checking for exit in -lboost_python-py2.7... no checking for exit in -lboost_python-2.7... no checking for exit in -lboost_python... (cached) no checking for exit in -lboost_python-py2.7... (cached) no checking for exit in -lboost_python-2.7... (cached) no checking for exit in -lboost_python-mt... no checking for exit in -lboost_python-mt-py2.7... no checking for exit in -lboost_python-mt-2.7... no configure: error: No usable boost::python found
I appreciate your help.
Best, Arash
-- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com. _______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
Hi, Thanks for your reply. Yes, I compiled and installed boost libraries. I forgot to mention that I have not removed the default version of CentOS which is Python2.6 (because the system has also some other users); hence, I used these commands to configure and install boost: bootstrap.sh --with-python=python2.7 sudo ./b2 install As the result, I can see that the header files and libraries of boost have become available in the following folders: /usr/local/include/boost/ /usr/local/lib However, none of the boost libraries starts with boost_python; instead, I think the relevant ones are: libboost_python.a, libboost_python.so, and libboost_python.so.1.52.0. Therefore, I also tried the following command to configure graph-tool, but it is still unsuccessful. The error message is as follows: =========================== Using python version: 2.7.3 =========================== checking for boostlib >= 1.38.0... yes checking whether the Boost::Python library is available... yes checking for exit in -llibboost_python... no checking for exit in -llibboost_python-py2.7... no checking for exit in -llibboost_python-2.7... no checking for exit in -lboost_python-libboost_python... no checking for exit in -lboost_python-libboost_python-py2.7... no checking for exit in -lboost_python-libboost_python-2.7... no checking for exit in -lboost_python... no checking for exit in -lboost_python-py2.7... no checking for exit in -lboost_python-2.7... no checking for exit in -lboost_python-mt... no checking for exit in -lboost_python-mt-py2.7... no checking for exit in -lboost_python-mt-2.7... no configure: error: No usable boost::python found How I can make sure that boost libraries are correctly compiled? I appreciate your help. Arash On Tue, Jan 29, 2013 at 6:54 PM, Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com
wrote:
On 29 January 2013 18:48, Arash <jalalzadeh@gmail.com> wrote:
Hi,
I have a very similar situation and I have faced exactly the same error, but the mentioned solution doesn't work for me. I have installed Python 2.7.3 on
Have you installed Boost::Python compiled against that python? The configure script is complaining that it can't find Boost::Python library...
CentOS 6.3. I run this command:
./configure --enable-openmp PYTHON="/usr/local/bin/python2.7" CPPFLAGS="-I/usr/local/include/python2.7" LDFLAGS="-L/usr/local/lib/python2.7"
And I receive this message:
=========================== Using python version: 2.7.3 =========================== checking for boostlib >= 1.38.0... yes checking whether the Boost::Python library is available... yes checking for exit in -lboost_python... no checking for exit in -lboost_python-py2.7... no checking for exit in -lboost_python-2.7... no checking for exit in -lboost_python... (cached) no checking for exit in -lboost_python-py2.7... (cached) no checking for exit in -lboost_python-2.7... (cached) no checking for exit in -lboost_python-mt... no checking for exit in -lboost_python-mt-py2.7... no checking for exit in -lboost_python-mt-2.7... no configure: error: No usable boost::python found
I appreciate your help.
Best, Arash
-- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com. _______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
On 01/29/2013 07:48 PM, Arash wrote:
Hi,
I have a very similar situation and I have faced exactly the same error, but the mentioned solution doesn't work for me. I have installed Python 2.7.3 on CentOS 6.3. I run this command:
./configure --enable-openmp PYTHON="/usr/local/bin/python2.7" CPPFLAGS="-I/usr/local/include/python2.7" LDFLAGS="-L/usr/local/lib/python2.7"
In your other email, you said you had installed the boost libraries in /usr/local/include/boost/ /usr/local/lib Therefore, your variables should be CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" Also, whenever encountering ./configure problems, please _always_ attach the file config.log, which contains more detailed information on any failures. Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
Thanks Tiago for your comment. I followed your suggestion and tried to configure it using the following command: ./configure --enable-openmp PYTHON="/usr/local/bin/python2.7" CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" It is still unsuccessful; I receive the same error message. Please also find attached the config.log file. Thanks for your help. config.log <http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/file/n4024953/config.log> -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 01/30/2013 03:21 PM, Arash wrote:
Thanks Tiago for your comment. I followed your suggestion and tried to configure it using the following command:
./configure --enable-openmp PYTHON="/usr/local/bin/python2.7" CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
It is still unsuccessful; I receive the same error message. Please also find attached the config.log file.
How is your boost-python library called? I.e. what is the output of the command 'ls /usr/local/lib/libboost_python*' ? -- Tiago de Paula Peixoto <tiago@skewed.de>
It is: /usr/local/lib/libboost_python.a /usr/local/lib/libboost_python.so.1.52.0 /usr/local/lib/libboost_python.so -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 01/30/2013 03:48 PM, Arash wrote:
It is:
/usr/local/lib/libboost_python.a /usr/local/lib/libboost_python.so.1.52.0 /usr/local/lib/libboost_python.so
Ok, so according to the config.log some expected symbols from the python library are not being found: configure:17474: g++ -o conftest -Wall -ftemplate-depth-150 -Wno-deprecated -Wno-unknown-pragmas -O3 -fvisibility=default -fvisibility-inlines-hidden -fopenmp -I/usr/local/include -I/usr/local/include/python2.7 -L/usr/local/lib -L/usr/local/lib/python2.7/config -lpython2.7 conftest.cpp -lboost_python -lexpat -lbz2 -lm >&5 /usr/local/lib/libboost_python.so: undefined reference to `PyList_Insert' /usr/local/lib/libboost_python.so: undefined reference to `PyExc_ImportError' ... Did you compile Python yourself? Did you configure it with --enable-shared? Is there a file named /usr/local/lib/libpython2.7.so? Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
Python is not compiled by me, and I cannot find libpython2.7.so. Do I need to compile Python again? In this case do I need to recompile all other libraries as well? Thanks, Arash On Wed, Jan 30, 2013 at 9:58 AM, Tiago de Paula Peixoto <tiago@skewed.de>wrote:
On 01/30/2013 03:48 PM, Arash wrote:
It is:
/usr/local/lib/libboost_python.a /usr/local/lib/libboost_python.so.1.52.0 /usr/local/lib/libboost_python.so
Ok, so according to the config.log some expected symbols from the python library are not being found:
configure:17474: g++ -o conftest -Wall -ftemplate-depth-150 -Wno-deprecated -Wno-unknown-pragmas -O3 -fvisibility=default -fvisibility-inlines-hidden -fopenmp -I/usr/local/include -I/usr/local/include/python2.7 -L/usr/local/lib -L/usr/local/lib/python2.7/config -lpython2.7 conftest.cpp -lboost_python -lexpat -lbz2 -lm >&5 /usr/local/lib/libboost_python.so: undefined reference to `PyList_Insert' /usr/local/lib/libboost_python.so: undefined reference to `PyExc_ImportError' ...
Did you compile Python yourself? Did you configure it with --enable-shared? Is there a file named /usr/local/lib/libpython2.7.so?
Cheers, Tiago
-- Tiago de Paula Peixoto <tiago@skewed.de>
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
On 01/30/2013 04:09 PM, Arash Fard wrote:
Python is not compiled by me, and I cannot find libpython2.7.so <http://libpython2.7.so/>.
Do I need to compile Python again? In this case do I need to recompile all other libraries as well?
You need to compile Python with support to shared libraries. You do not need to recompile other libraries, as long as you use the same Python version. -- Tiago de Paula Peixoto <tiago@skewed.de>
Great, it worked. I do appreciate. Now, it complains about not finding "cairomm-1.0". I just need to synthesize some graphs, and I don't need graphical representation. Can you please advise me how I can avoid installing the optional packages? Thanks, Arash On Wed, Jan 30, 2013 at 10:11 AM, Tiago de Paula Peixoto <tiago@skewed.de>wrote:
On 01/30/2013 04:09 PM, Arash Fard wrote:
Python is not compiled by me, and I cannot find libpython2.7.so < http://libpython2.7.so/>.
Do I need to compile Python again? In this case do I need to recompile all other libraries as well?
You need to compile Python with support to shared libraries. You do not need to recompile other libraries, as long as you use the same Python version.
-- Tiago de Paula Peixoto <tiago@skewed.de>
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
On 01/30/2013 05:46 PM, Arash Fard wrote:
Great, it worked. I do appreciate. Now, it complains about not finding "cairomm-1.0". I just need to synthesize some graphs, and I don't need graphical representation. Can you please advise me how I can avoid installing the optional packages?
Just run configure with the --disable-cairo option. -- Tiago de Paula Peixoto <tiago@skewed.de>
Hi Tiago, I managed to install Graph-Tool. I really I appreciate your help; it was great. Thanks, Arash On Wed, Jan 30, 2013 at 11:49 AM, Tiago de Paula Peixoto <tiago@skewed.de>wrote:
On 01/30/2013 05:46 PM, Arash Fard wrote:
Great, it worked. I do appreciate. Now, it complains about not finding "cairomm-1.0". I just need to synthesize some graphs, and I don't need graphical representation. Can you please advise me how I can avoid installing the optional packages?
Just run configure with the --disable-cairo option.
-- Tiago de Paula Peixoto <tiago@skewed.de>
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
participants (5)
-
Arash -
Arash Fard -
Dmitrijs Ledkovs -
josh.columbus.chang@gmail.com -
Tiago de Paula Peixoto