0

我尝试在 cygwin 下安装最新版本的 redland 库:

raptor2-2.0.0
rasqal-0.9.24
redland-1.0.13
redland-bindings-1.0.13.1

我对 python 绑定很感兴趣。我已经成功安装了 raptor、rasqal 和 redland。我尝试安装绑定,但我得到了一堆对 python 对象的未定义引用“:

home@home-PC ~/redland-bindings-1.0.13.1/python
$ make install
Making install in test
make[1]: Entering directory `/home/home/redland-bindings-1.0.13.1/python/test'
make[2]: Entering directory `/home/home/redland-bindings-1.0.13.1/python/test'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/home/redland-bindings-1.0.13.1/python/test'
make[1]: Leaving directory `/home/home/redland-bindings-1.0.13.1/python/test'
make[1]: Entering directory `/home/home/redland-bindings-1.0.13.1/python'
gcc -Wall -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -g   -I/usr/local/include -I/usr
/local/include/raptor2 -I/usr/local/include/rasqal   -I/usr/local/include/rasqal -I/usr/local/include/raptor2    -DSWIG_PYTHON_SILENT
_MEMLEAK -Wall -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -g  Redland_wrap.so -shared
 -L/usr/local/lib -lrdf -lrasqal -lraptor2 -lxml2 -lz -liconv -lm   -L/usr/local/lib -lrasqal -lraptor2 -lxml2 -lz -liconv -lm     -o
 Redland.so
Redland_wrap.so: In function `SWIG_Python_ErrorType':
/home/home/redland-bindings-1.0.13.1/python/./Redland_wrap.c:919: undefined reference to `__imp__PyExc_RuntimeError'
/home/home/redland-bindings-1.0.13.1/python/./Redland_wrap.c:889: undefined reference to `__imp__PyExc_IOError'
/home/home/redland-bindings-1.0.13.1/python/./Redland_wrap.c:886: undefined reference to `__imp__PyExc_MemoryError'
/home/home/redland-bindings-1.0.13.1/python/./Redland_wrap.c:916: undefined reference to `__imp__PyExc_AttributeError'
/home/home/redland-bindings-1.0.13.1/python/./Redland_wrap.c:913: undefined reference to `__imp__PyExc_SystemError'
/home/home/redland-bindings-1.0.13.1/python/./Redland_wrap.c:910: undefined reference to `__imp__PyExc_ValueError'
/home/home/redland-bindings-1.0.13.1/python/./Redland_wrap.c:907: undefined reference to `__imp__PyExc_SyntaxError'
/home/home/redland-bindings-1.0.13.1/python/./Redland_wrap.c:904: undefined reference to `__imp__PyExc_OverflowError'
/home/home/redland-bindings-1.0.13.1/python/./Redland_wrap.c:901: undefined reference to `__imp__PyExc_ZeroDivisionError'
/home/home/redland-bindings-1.0.13.1/python/./Redland_wrap.c:898: undefined reference to `__imp__PyExc_TypeError'
/home/home/redland-bindings-1.0.13.1/python/./Redland_wrap.c:895: undefined reference to `__imp__PyExc_IndexError'

我猜cygwin和python有问题。你有什么建议吗?

4

0 回答 0