While installing PSI4 on Edit: Ubuntu 13.10 (earlier Ubuntu 12.04), I'm encountering the following error:
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
Installation line :
../configure --prefix=/usr/local/psi4 --with-blas='-mkl' --with-incdirs=-mkl
Another possible solution on Ubuntu forums.
What I've tried:
apt-get. This is the solution mentioned in the first, second and fourth links. I still keep getting the same error.
What I don't understand:
Is the problem coming because of the 32-bit compiler and 64-bit python mismatch mentioned in the third link (Error compiling...mingw...)?
If the answer to 1 is yes, how do I make the compiler use 32-bit python?
P.S. Maybe this is irrelevant, but the log (before the error) pertaining to python
checking for a Python interpreter with version >= 2.6... python checking for python... /usr/bin/python checking for python version... 2.7 checking for python include statements... -I/usr/include/python2.7 -I/usr/include/python2.7 checking for python linker flags... -L/usr/lib/python2.7/config -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions checking consistency of all components of python development environment... no configure: error: