我正在尝试从源代码安装 GEOS 并使用正确的 Python 绑定对其进行配置(如此处所示http://scigeo.org/articles/howto-install-latest-geospatial-software-on-linux.html#geos)。我正在安装它的 Linux 发行版带有 Python 2.6,所以当这样做时:
./configure --prefix=/opt/source/geos-3.3.8/build --enable-python
它指向错误的 Python 版本(如预期的那样)
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python2.6/site-packages
我试图通过执行以下操作将其指向正确的方向:
./configure --prefix=/opt/python/geos-3.3.8/build --enable-python=/opt/python/Python-3.4.3/python
但没有运气:
configure: error: bad value /opt/python/Python-3.4.3/python for --enable-python
无论如何(不用弄乱 /usr/bin/python 我可以让 GEOS 构建指向正确的 Python 版本?)