【问题标题】:Issue installing Geos and Gdal on an Amazon Ec2 instance在 Amazon Ec2 实例上安装 Geos 和 Gdal 时出现问题
【发布时间】: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


    【解决方案1】:

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

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

    【讨论】:

    • 我确实尝试过,但在“sudo yum update”之后,终端要求我输入密码,结果令人不快。对于那些即将尝试这样做的人,请注意:See here
    猜你喜欢
    • 1970-01-01
    • 2013-09-05
    • 2015-04-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多