【问题标题】:Why rasqal configuration can't recognize the already raptor library on cygwin?为什么 rasqal 配置无法识别 cygwin 上已经存在的 raptor 库?
【发布时间】:2011-01-18 12:47:29
【问题描述】:

我正在尝试使用 cygwin 将 rasqal 0.9.20 库 http://librdf.org/rasqal/ 安装到 Windows 7 机器上。之前我已经成功安装了 raptor-2.2.0 库 http://librdf.org/raptor/,我可以使用创建的 rapper 工具验证这一点安装后(./configure、./make、/make install)

我从 rasqal 的配置中得到的错误是:

    ./configure --enable-raptor2  
...  
    checking for raptor... configure: error: Raptor2 is not installed - see http://librdf.org/raptor/ to get a version newer than 1.9.0

我找不到修复它的方法。 cofigure 文件中处理此标志的代码如下:

11840 # raptor is REQUIRED despite the checking here
11841 RAPTOR_MIN_VERSION=1.4.19
11842 RAPTOR_MAX_VERSION=1.8.99
11843 RAPTOR2_MIN_VERSION=1.9.0
11844
11845 raptor2=no
11846 # Check whether --enable-raptor2 was given.
11847 if test "${enable_raptor2+set}" = set; then :
11848   enableval=$enable_raptor2; raptor2="$enableval"
11849 else
11850   raptor2="no"
11851 fi

【问题讨论】:

  • 我发现了这个错误。我复制了 /usr/lib/pkgconfig 下的 raptor.pc 文件,它工作了
  • 这不是一个好主意。使用 configure --prefix=/usr 将东西安装在正确的位置。阅读 INSTALL.html 文档了解更多信息。

标签: configuration cygwin redland raptor2


【解决方案1】:

Raptor 2.0.0 仅使用pkg-config 提供配置信息,raptor-config 已被删除。这同样适用于 rasqal 本身,rasqal-config 程序将在某个时候消失。 rasqal 和 librdf 的 --enable-raptor2 选项用于测试 beta raptor2,它已从 rasqal 0.9.22 和 librdf GIT 头中删除。

【讨论】:

  • 我尝试安装最新版本的redland库:raptor2-2.0.0 rasqal-0.9.24 redland-1.0.13 redland-bindings-1.0.13.1。我已经成功安装了raptor,rasqal和 redland 在 redland lib 配置期间进行了一些更改后,raptor.pc 和 rasqal.pc 是从 /usr/local/lib/pkgconfig 而不是从 /usr/lib/pkgconfig 读取的,这是正确的目录。我尝试安装绑定并从 Redland_wrap.so.e.g 中获得了一堆对 python 对象的未定义引用:"undefined reference to `__imp__PyExc_RuntimeError'"
  • 您在与原始问题(cygwin 中的 pkg-config)无关的评论中提出了一个新问题,这是对 StackOverflow 的错误使用。如果它是普遍感兴趣的,请提出一个新问题。否则,请使用电子邮件或其他记录在案的 redland 反馈方法之一。
  • 你说得对。我发了一个新问题stackoverflow.com/questions/5002194/…
【解决方案2】:

设置 PKG_CONFIG_PATH 以包含正确的路径:

env PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure

如果在您的系统上可用,另一种方法是在 /etc/environment 中定义环境变量:

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-06-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-29
    • 2013-04-29
    • 2015-08-24
    • 1970-01-01
    相关资源
    最近更新 更多