【发布时间】:2015-02-09 12:06:57
【问题描述】:
我正在使用 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安装过程中,我注意到安装时需要的Geos Lib是3.1.0(2009版本)(通过yum as好)是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 包?
【问题讨论】:
标签: amazon-ec2 gdal geos osgeo