我正在使用 Cent Os Image 运行 Amazon Ec2 实例。我需要安装 Geos 和 Gdal 来运行 python 脚本。
我首先尝试本指南:https
://github.com/phayes/geoPHP/wiki/Geos-installation-on-centos6
然后将 Gdal 安装绑定到它,如下所示:
sudo ./configure --with-python -with-geos=/usr/local/bin/geos-config
不幸的是,当我运行脚本时,我被告知:错误 6: GEOS 支持未启用。
即使在 ./configure 实例期间,我得到Geos Enable: Yes
然后我卸载所有东西并尝试通过 yum 安装......似乎在 Gdal 安装过程中,我注意到安装的(通过 yum 也是)所需的 Geos Lib 是 3.1.0(2009 版本) 3.4.2
Error: Package: gdal-1.4.4-2.el5.rf.x86_64 (rpmforge)
Requires: libgeos-3.1.0.so()(64bit)
Error: Package: gdal-1.4.4-2.el5.rf.x86_64 (rpmforge)
Requires: libodbcinst.so.1()(64bit)
Error: Package: gdal-1.4.4-2.el5.rf.x86_64 (rpmforge)
Requires: libpq.so.4()(64bit)
Error: Package: gdal-1.4.4-2.el5.rf.x86_64 (rpmforge)
Requires: libodbc.so.1()(64bit)
有没有办法安装一个已经包含所有内容的 osgeo 包?