Configuration 为什么rasqal配置无法识别cygwin上已经存在的raptor库?

Configuration 为什么rasqal配置无法识别cygwin上已经存在的raptor库?,configuration,cygwin,redland,raptor2,Configuration,Cygwin,Redland,Raptor2,我正在尝试使用cygwin将rasqal 0.9.20库安装到windows 7计算机上。之前我已成功安装raptor-2.2.0库,我可以使用rapper工具验证这一点,rapper工具是在安装后创建的。/configure,./make,/make install 我从rasqal的配置中得到的错误是: ./configure --enable-raptor2 ... checking for raptor... configure: error: Raptor2 i

我正在尝试使用cygwin将rasqal 0.9.20库安装到windows 7计算机上。之前我已成功安装raptor-2.2.0库,我可以使用rapper工具验证这一点,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
我找不到办法修理它。处理此标志的COFIGRE文件中的代码如下所示:

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

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

设置PKG_CONFIG_路径以包括正确的路径:

env PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure
另一种方法(如果在系统上可用)是在/etc/environment中定义环境变量:

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

我发现了这个bug。我在/usr/lib/pkgconfig下复制了raptor.pc文件,它成功了。这不是一个好主意。使用configure-prefix=/usr将东西安装到正确的位置。阅读INSTALL.html文档了解更多信息。我尝试安装最新版本的redland library:raptor2-2.0.0 rasqal-0.9.24 redland-1.0.13 redland-bindings-1.0.13.1。在redland lib配置期间进行了一些更改后,我成功安装了raptor、rasqal和redland,raptor.pc和rasqal.pc是从/usr/local/lib/pkgconfig读取的,而不是从/usr/lib/pkgconfig读取的,这是正确的目录。我试图安装绑定,并从Redland_wrap获得了一堆对python对象的未定义引用。例如:未定义对“\uuu imp\uu PyExc\u RuntimeError”的引用。您在一条注释中提出了一个新问题,与cygwin中原始问题pkg config无关,这是StackOverflow的一个错误用法。如果大家都感兴趣,提出一个新问题。否则,请通过电子邮件或其他记录在案的redland反馈方法。你是对的。我发布了一个新问题