首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在RHEL6 64位上安装Rtree 0.8.2软件包

无法在RHEL6 64位上安装Rtree 0.8.2软件包
EN

Server Fault用户
提问于 2016-03-22 18:27:53
回答 1查看 1.1K关注 0票数 0

更新:

如果也有帮助的话。我有根访问权限。似乎我不是唯一有问题的人,但是有几个人遇到了这个问题-- https://github.com/ioos/conda-recipes/pull/198,我已经相应地更新了我的core.py,就像链接中记录的那样--但是我得到了一个新的错误。

代码语言:javascript
复制
python setup.py build
Traceback (most recent call last):
  File "setup.py", line 4, in <module>
    import rtree
  File "/home/ricson/Rtree-0.8.2/rtree/__init__.py", line 1, in <module>
    from .index import Rtree
  File "/home/ricson/Rtree-0.8.2/rtree/index.py", line 6, in <module>
    from . import core
  File "/home/ricson/Rtree-0.8.2/rtree/core.py", line 113, in <module>
    rt = ctypes.CDLL(os.path.join(sys.prefix, 'lib', lib_name))
  File "/usr/lib64/python2.6/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /usr/lib/libspatialindex_c.so: cannot open shared object file: No such file or directory

我知道这是一个目录问题,但我没有安装任何我们的普通。我使用.configure;make;make;ldconfig安装了libspatialindex 1.8.5。

如果我更改,我就能够构建和执行

代码语言:javascript
复制
rt = ctypes.CDLL(os.path.join(sys.prefix, 'lib', lib_name))

代码语言:javascript
复制
rt = ctypes.CDLL(os.path.join(sys.prefix, 'local/lib', lib_name))

然而,Rtree将在6次测试中失败3次。

原版:

我正试图在python2.6.6上安装Rtree模块,但是当我明确地安装libspatialindex 1.8.5时,setup.py坚持我有libspatialindex 1.6。

我错过了几步吗?下面由libspatialindex所有者指定的脚本确实返回1.8.5 (https://github.com/libspatialindex/libspatialindex/wiki/1.-Getting-Started)

代码语言:javascript
复制
#include <iostream>
#include <spatialindex/capi/sidx_api.h>
using namespace std;
using namespace SpatialIndex;

    int main(int argc, char* argv[])
    {
        char* pszVersion = SIDX_Version();
        fprintf(stdout, "libspatialindex version: %s\n", pszVersion);
        fflush(stdout);
        free(pszVersion);
    }

但是,当我在Rtree中编辑index.py时,当我清楚地安装了1.8.5时,我得到了1.6.1版本

代码语言:javascript
复制
python ../setup.py
core.rt.SIDX_Version() 1.6.1
Traceback (most recent call last):
  File "../setup.py", line 4, in <module>
    import rtree
  File "/home/ricson/Rtree-0.8.2/rtree/__init__.py", line 1, in <module>
    from .index import Rtree
  File "/home/ricson/Rtree-0.8.2/rtree/index.py", line 39, in <module>
    raise Exception("This version of Rtree requires libspatialindex 1.7.0 or greater")
Exception: This version of Rtree requires libspatialindex 1.7.0 or greater

如果需要转移到服务器故障,请告诉我。提前谢谢。

EN

回答 1

Server Fault用户

发布于 2016-03-29 01:23:33

会暂时关闭这个。安装r-tree 0.6解决了,它只需要空间索引1.5.0+。

rtree将测试5/6通过。我的基本脚本目前正在工作,但最终需要记住,从长远来看,这可能会导致问题。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/765443

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档