I've searched the forum repeatedly and not found anything helpful despite this issue being posted 5 or 6 times sadly.

I'm working in an environment where I need to build all dependencies from scratch. I've failed at the first hurdle with:

> 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.

Note I have built the python install i need to use myself. So when i try:

$ ./configure --prefix=`pwd`/gt-inst  LDFLAGS="-L/home/gs/Python-2.7.6/python-2.7.6/lib/python2.7/lib"

Or similar i just get the same error. 

What is different about the python install graph-tool configure expects?

Thanks
Gerry