curl-and-python

Installing PycURL under Cygwin

From: Chris Cormie <ccormie_at_aussiemail.com.au>
Date: Sat, 21 Feb 2009 22:27:45 +1100

Hi,

I am attempting to install PycURL under Cygwin. My first attempt failed
because Cygwin's cURL version was too old. So I downloaded the cURL
source and built it from scratch, then told Cygwin to uninstall it's
version to avoid confusion.

When I run the build/install script, everything looks fine (output
below). It's picked up curl-config and appears to be using it:
/usr/local/lib/libcurl.a looks fine.

However, when I try to run the examples:

$ python basicfirst.py
Fatal Python error: pycurl: libcurl link-time version is older than
compile-time version
Aborted (core dumped)

Furthermore: using depends to examine the build I see a dependency on
cygcurl-4.dll, which I don't understand since "cygcurl" is nowhere in
the configure scripts and isn't coming from curl-config.

Could someone shed some light on the problem?
Best Regards,
Chris

------
build install transcript:

$ python setup.py install
Using curl-config (libcurl 7.19.3)
running install
running build
running build_py
running build_ext
building 'pycurl' extension
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -DHAV
E_CURL_OPENSSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_OPENSSL=1
-DHAVE_CURL_OPENSSL
=1 -DHAVE_CURL_SSL=1 -I/usr/local/include -I/usr/include/python2.5 -c
src/pycurl
.c -o build/temp.cygwin-1.5.25-i686-2.5/src/pycurl.o
gcc -shared -Wl,--enable-auto-image-base
build/temp.cygwin-1.5.25-i686-2.5/src/p
ycurl.o -L/usr/local/lib -L/usr/lib/python2.5/config -lcurl -lssl
-lcrypto -lssl
  -lcrypto -lz -lssl -lcrypto -lssl -lcrypto -lz -lpython2.5 -o
build/lib.cygwin-
1.5.25-i686-2.5/pycurl.dll /usr/local/lib/libcurl.a
running install_lib
copying build/lib.cygwin-1.5.25-i686-2.5/curl/__init__.py ->
/usr/lib/python2.5/
site-packages/curl
copying build/lib.cygwin-1.5.25-i686-2.5/pycurl.dll ->
/usr/lib/python2.5/site-p
ackages
byte-compiling /usr/lib/python2.5/site-packages/curl/__init__.py to
__init__.pyc

running install_data
copying ChangeLog -> /usr/share/doc/pycurl
copying COPYING -> /usr/share/doc/pycurl
copying COPYING2 -> /usr/share/doc/pycurl
copying INSTALL -> /usr/share/doc/pycurl
copying README -> /usr/share/doc/pycurl
copying TODO -> /usr/share/doc/pycurl
copying doc/callbacks.html -> /usr/share/doc/pycurl/html
copying doc/curlmultiobject.html -> /usr/share/doc/pycurl/html
copying doc/curlobject.html -> /usr/share/doc/pycurl/html
copying doc/curlshareobject.html -> /usr/share/doc/pycurl/html
copying doc/pycurl.html -> /usr/share/doc/pycurl/html
copying examples/basicfirst.py -> /usr/share/doc/pycurl/examples
copying examples/file_upload.py -> /usr/share/doc/pycurl/examples
copying examples/linksys.py -> /usr/share/doc/pycurl/examples
copying examples/retriever-multi.py -> /usr/share/doc/pycurl/examples
copying examples/retriever.py -> /usr/share/doc/pycurl/examples
copying examples/sfquery.py -> /usr/share/doc/pycurl/examples
copying examples/xmlrpc_curl.py -> /usr/share/doc/pycurl/examples
copying tests/test.py -> /usr/share/doc/pycurl/tests
copying tests/test_cb.py -> /usr/share/doc/pycurl/tests
copying tests/test_debug.py -> /usr/share/doc/pycurl/tests
copying tests/test_ftp.py -> /usr/share/doc/pycurl/tests
copying tests/test_getinfo.py -> /usr/share/doc/pycurl/tests
copying tests/test_gtk.py -> /usr/share/doc/pycurl/tests
copying tests/test_internals.py -> /usr/share/doc/pycurl/tests
copying tests/test_memleak.py -> /usr/share/doc/pycurl/tests
copying tests/test_multi.py -> /usr/share/doc/pycurl/tests
copying tests/test_multi2.py -> /usr/share/doc/pycurl/tests
copying tests/test_multi3.py -> /usr/share/doc/pycurl/tests
copying tests/test_multi4.py -> /usr/share/doc/pycurl/tests
copying tests/test_multi5.py -> /usr/share/doc/pycurl/tests
copying tests/test_multi6.py -> /usr/share/doc/pycurl/tests
copying tests/test_multi_socket.py -> /usr/share/doc/pycurl/tests
copying tests/test_multi_socket_select.py -> /usr/share/doc/pycurl/tests
copying tests/test_multi_timer.py -> /usr/share/doc/pycurl/tests
copying tests/test_multi_vs_thread.py -> /usr/share/doc/pycurl/tests
copying tests/test_post.py -> /usr/share/doc/pycurl/tests
copying tests/test_post2.py -> /usr/share/doc/pycurl/tests
copying tests/test_post3.py -> /usr/share/doc/pycurl/tests
copying tests/test_share.py -> /usr/share/doc/pycurl/tests
copying tests/test_socketopen.py -> /usr/share/doc/pycurl/tests
copying tests/test_stringio.py -> /usr/share/doc/pycurl/tests
copying tests/test_xmlrpc.py -> /usr/share/doc/pycurl/tests
copying tests/util.py -> /usr/share/doc/pycurl/tests
running install_egg_info
Removing /usr/lib/python2.5/site-packages/pycurl-7.19.0-py2.5.egg-info
Writing /usr/lib/python2.5/site-packages/pycurl-7.19.0-py2.5.egg-info

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2009-02-21