我正在尝试在我的 NAS(QNAP TS-459)上安装 Pycurl,但出现错误“libcurl.a:没有这样的文件或目录”。以下是来自控制台的日志:
[admin@MYSERVER pycurl-7.19.0]# uname -mrs
Linux 2.6.33.2 i686
ipkg status | grep curl
Depends: zlib, openssl, libcurl, diffutils, rcs, expat
Package: libcurl
Package: libcurl-dev
Depends: libcurl
Package: py26-curl
Depends: python26, libcurl (>=7.19.0), openssl
Depends: libcurl, libxml2, openssl, zlib
python setup.py install
ldd /usr/lib/libcurl.soobjdump -Tlddobjdump -T/usr/lib/libcurl.sosodumpls /usr/lib/libcurl.soequery belongscho LD_LIBRARY_PATH$LD_LIBRARY_PATH$ls -la /usr/local/lib/libcurl*echo $LIBCURL_IPK_DIRwhich libcurllocatepython setup.py install
Using curl-config (libcurl 7.24.0)
running install
running build
running build_py
running build_ext
building 'pycurl' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/include -I/share/MD0_DATA/.qpkg/Python/include/python2.7 -c src/pycurl.c -o build/temp.linux-i686-2.7/src/pycurl.o
gcc -pthread -shared build/temp.linux-i686-2.7/src/pycurl.o -L/opt/lib -L/home/slug/optware/ts509/staging/opt/lib -L/home/slug/optware/ts509/staging/lib -L/home/slug/optware/ts509/staging/lib -L/home/slug/optware/ts509/staging/opt/lib -L/home/slug/optware/ts509/staging/lib -L/home/slug/optware/ts509/staging/lib -lcurl -lssl -lssl -lssl -lcrypto -lrt -lz -o build/lib.linux-i686-2.7/pycurl.so -Wl,-rpath,/opt/lib -Wl,-rpath-link,/home/slug/optware/ts509/staging/opt/lib /opt/lib/libcurl.a -Wl,-rpath,/opt/lib -Wl,-rpath-link,/home/slug/optware/ts509/staging/opt/lib
gcc: /opt/lib/libcurl.a: No such file or directory
error: command 'gcc' failed with exit status 1
[admin@MYSERVER pycurl-7.19.0]# ls /opt/lib
lib/ libexec/
[admin@MYSERVER pycurl-7.19.0]# ls /opt/lib/libcu*
/opt/lib/libcurl.so /opt/lib/libcurl.so.4.2.0
/opt/lib/libcurl.so.4
[admin@MYSERVER pycurl-7.19.0]#
知道如何解决问题吗?谢谢!