I am trying to install locally on ubuntu 12.04. I have installed all the dependencies as well. I got the following error: I have set all the flags but I still get the LDFLAGS error.
I configure as:
./configure --prefix=/lab/app/python/python_mohammad/my_py/ CXXFLAGS="-I/lab/app/python/python_mohammad/my_py/include/python2.7" CFLAGS="-I/lab/app/python/python_mohammad/my_py/include/python2.7" PYTHON="/lab/app/python/python_mohammad/my_py/bin/python2.7" LDFLAGS="-L/lab/app/python/python_mohammad/my_py/include/python2.7/" PYTHON=/lab/app/python/python_mohammad/my_py/bin/python --with-boost="/lab/app/python/python_mohammad/my_py/lib" PYTHON_LDFLAGS="-L/lab/app/python/python_mohammad/my_py/include/python2.7/ -lpython2.7"
And the error is: ================ Detecting python ================ checking whether /lab/app/python/python_mohammad/my_py/bin/python version is
= 2.6... yes
checking for /lab/app/python/python_mohammad/my_py/bin/python version... 2.7 checking for /lab/app/python/python_mohammad/my_py/bin/python platform... linux2 checking for /lab/app/python/python_mohammad/my_py/bin/python script directory... ${prefix}/lib/python2.7/site-packages checking for /lab/app/python/python_mohammad/my_py/bin/python extension module directory... ${exec_prefix}/lib/python2.7/site-packages checking for python2.7... /lab/app/python/python_mohammad/my_py/bin/python checking for a version of Python >= '2.1.0'... yes checking for a version of Python == '2.7.3'... yes checking for the distutils Python package... yes checking for Python include path... -I/lab/app/python/python_mohammad/my_py/include/python2.7 checking for Python library path... -L/lab/app/python/python_mohammad/my_py/include/python2.7/ -lpython2.7 checking for Python site-packages path... /lab/app/python/python_mohammad/my_py/lib/python2.7/site-packages checking python extra libraries... -lpthread -ldl -lutil checking python extra linking flags... -Xlinker -export-dynamic checking consistency of all components of python development environment... no configure: error: in `/lab/app/python/python_mohammad/graph-tool-2.2.24': configure: error: Could not link test program to Python. Maybe the main Python library has been installed in some non-standard library path. If so, pass it to configure, via the LDFLAGS environment variable. Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
============================================================================ ERROR! You probably have to install the development version of the Python package for your distribution. The exact name of this package varies among them.
============================================================================
See `config.log' for more details -------------------------- Please help! I attached the log file here http://pastebin.com/RNqzrjRj .
-- 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.
Hi,
On 07/23/2013 03:37 AM, msah wrote:
I am trying to install locally on ubuntu 12.04. I have installed all the dependencies as well. I got the following error:
Is there any reason why you are not using the provided compiled packages for Ubuntu?
I have set all the flags but I still get the LDFLAGS error.
This is very strange. The test case which is generated by the configure script seems invalid... I cannot reproduce this here. Did you try the git version of graph-tool as well?
Hi Tiago,
Thanks for your help. I don't have the root access and I want to install graph-tool locally. I have installed python 2.7.3 and all the dependencies successfully as non-root user but the graph-tool installation was unsuccessful.
I checked the git version. But it seems that there is no configure file in the folder.
Best, Mohammad
-- 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 07/24/2013 08:31 PM, msah wrote:
Hi Tiago,
Thanks for your help. I don't have the root access and I want to install graph-tool locally. I have installed python 2.7.3 and all the dependencies successfully as non-root user but the graph-tool installation was unsuccessful.
I checked the git version. But it seems that there is no configure file in the folder.
The configure script can be generated by running ./autogen.sh
Cheers, Tiago