Attempting to install GEOS-3.6.2 on a Linux system with Python 3.6.4 already compiled. I am attempting to make the package with the command:
export PYTHON=/usr/local/bin/python3 && make && sudo make install
The configure command fails with:
...much snipped...
checking for swig... /usr/bin/swig
checking for SWIG version... 3.0.8
configure: SWIG executable is '/usr/bin/swig'
configure: SWIG library directory is '/usr/share/swig3.0'
checking for python version... 3.6
checking for python platform... linux
checking for python script directory... ${prefix}/lib/python3.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.6/site-packages
checking for Python include path... /usr/local/include/python3.6m
checking for Python library path...
configure: error: cannot find Python library path
I have confirmed that the Python library exists at /usr/local/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6m.a`
I had compiled python with a simple ./configure --prefix=/usr/local && make && sudo make install
System Stuff:
~/Downloads/geos-3.6.2$ uname -a
Linux Sleipnir 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
~/Downloads/geos-3.6.2$ which python3
/usr/local/bin/python3
~/Downloads/geos-3.6.2$ python3 -V
Python 3.6.4
~$ cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"
NAME="Ubuntu"
VERSION="16.04.4 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.4 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
/usr/lib(64)/{ libpython3.so -> libpython3.6m.so.1.0 }
. ... Did you forget to configure Python3 with--enable-shared
? – Knud Larsen/usr/lib(64)
is : My hint in the previous comment./usr/local/lib/
is most often also included in the LD_LIBRARY_PATH. .../usr/local/lib/python3.6/config-3.6m-x86_64-linux-gnu/
is not. .... No OS name / version can be found in your question :cat /etc/*release*
– Knud Larsen