0

我正在使用 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 包?

4

1 回答 1

1

我们能够使用 EPEL 存储库中的软件包在 el5 和 el6 上成功安装 gdal 和 geos:https ://fedoraproject.org/wiki/EPEL

如果您正在混合存储库(不推荐),请务必在您的存储库配置中使用 includepkgs/exclude,或者(更好地)使用 yum 优先级插件以避免库不兼容。

于 2015-02-10T18:52:12.557 回答