Why cygwin cannot find python libraries while installing python redland-binding library?

老子叫甜甜 提交于 2019-12-25 07:59:51

问题


I tried to install the latest versions of redland library under cygwin :

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

I am interested for the python bindings. I've succefully installed raptor, rasqal and redland.I tried to install the bindings and i got a bunch of undefined references to python objects ":

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'

I guess there is a problem with cygwin and python.Do you have any recommandations?

来源:https://stackoverflow.com/questions/5002194/why-cygwin-cannot-find-python-libraries-while-installing-python-redland-binding

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!