Pycurl install :( there is already a version of libcurl min.

I am running python 2.6 on Intel Mac OS X 10.5

I am trying to install pycurl 7.16.2.1 (as recommended here http://curl.haxx.se/mail/curlpython-2009-03/0009.html ), but for some reason the installation sees my libcurl 7.16.3, but it still insisting that I install 7.16.2 or higher (does this not satisfy 7.16.3?)

Here's the error output:

Running pycurl-7.16.2.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-3emZIB/pycurl-7.16.2.1/egg-dist-tmp-K10rbP
Using curl-config (libcurl 7.16.3)
src/pycurl.c:54:4:src/pycurl.c:54:4: error: #error "Need libcurl version 7.16.2 or greater to compile pycurl."
 error: #error "Need libcurl version 7.16.2 or greater to compile pycurl."

To be sure curl-config -version gives libcurl 7.16.3

Any tips? Should I upgrade libcurl or stick with factory default lib?

== added a more detailed description after the answer ==

AFAIK python I have factory default (I did not get it myself from python.org)

Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) 
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin

And this is my curling version. You find it misleading because I'm using an Intel Macbook, not a PPC.

curl 7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
Protocols: tftp ftp telnet dict ldap http file https ftps 
Features: GSS-Negotiate IPv6 Largefile NTLM SSL libz 

, pycurl python

:

sudo port -u install py26-pycurl
Error: Port py26-pycurl not found
+3
2

python.org Python 2.6, 10.4 SDK, OS X. pycurl, , 10.4 libcurl, 7.13.1. , , 10.5 Apple Python 2.5, 10.5 , , , pycurl 7.16.2.1, , .

pycurl; setup.py --curl-config, curl-config. , /usr/bin/curl -config; . setup.py, libcurl pycurl. - MacPorts. pycurl python2.6 MacPorts. MacPorts, . :

sudo port selfupdate
sudo port -u install py26-curl   #edited

MacPorts python2.6 /opt/local/bin/python2.6.

python2.6, curl:

sudo port selfupdate
sudo port -u install curl

pycurl, - :

curl http://pycurl.sourceforge.net/download/pycurl-7.19.0.tar.gz | tar xz
cd pycurl-7.19.0
python2.6 setup.py install --curl-config=/opt/local/bin/curl-config
+7

pycurl Sourceforge. , , " " Mac OS X. , URL http://pycurl.sourceforge.net, .

0

Source: https://habr.com/ru/post/1733140/


All Articles