Why cygwin cannot find python libraries while inst

2019-09-01 07:35发布

问题:

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?