Your ad here would be seen by 100,000 unique vistors every month Haxx ad

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-and-python mailing list Archives

building pycurl on Snow Leopard

From: Bill Janssen <>
Date: Thu, 1 Oct 2009 17:58:37 PDT

I get this error when I try to build pycurl-7.19.0 on Snow Leopard (OS X

% python build
Using curl-config (libcurl 7.19.4)
libs are ['-lcurl', '-lssl', '-lcrypto', '-Wl,-weak-lldap', '-dynamic',
'-Os', '-pipe', '-g0', '-Wno-system-headers', '-Wl,-search_paths_first',
'-Wl,-weak-lgssapi_krb5', '-Wl,-weak-lkrb5', '-Wl,-weak-lk5crypto',
'-Wl,-weak-lcom_err', '-Wl,-weak-lresolv', '-lssl', '-lcrypto', '-lz',
'-lz', '/usr/lib/libcurl.a', '-lssl', '-lcrypto', '-Wl,-weak-lldap',
'-dynamic', '-Os', '-pipe', '-g0', '-Wno-system-headers',
'-Wl,-search_paths_first', '-Wl,-weak-lgssapi_krb5', '-Wl,-weak-lkrb5',
'-Wl,-weak-lk5crypto', '-Wl,-weak-lcom_err', '-Wl,-weak-lresolv',
'-lssl', '-lcrypto', '-lz', '-lz']
running build
running build_py
running build_ext
building 'pycurl' extension
gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc
-arch x86_64 build/temp.macosx-10.6-universal-2.6/src/pycurl.o -lcurl
-lssl -lcrypto -lssl -lcrypto -lz -lz -lssl -lcrypto -lssl -lcrypto -lz
-lz -o build/lib.macosx-10.6-universal-2.6/ -Wl,-weak-lldap
-dynamic -Os -pipe -g0 -Wno-system-headers -Wl,-search_paths_first
-Wl,-weak-lgssapi_krb5 -Wl,-weak-lkrb5 -Wl,-weak-lk5crypto
-Wl,-weak-lcom_err -Wl,-weak-lresolv /usr/lib/libcurl.a -Wl,-weak-lldap
-dynamic -Os -pipe -g0 -Wno-system-headers -Wl,-search_paths_first
-Wl,-weak-lgssapi_krb5 -Wl,-weak-lkrb5 -Wl,-weak-lk5crypto
-Wl,-weak-lcom_err -Wl,-weak-lresolv
i686-apple-darwin10-gcc-4.2.1: /usr/lib/libcurl.a: No such file or directory
powerpc-apple-darwin10-gcc-4.2.1: /usr/lib/libcurl.a: No such file or
i686-apple-darwin10-gcc-4.2.1: /usr/lib/libcurl.a: No such file or directory
lipo: can't figure out the architecture type of: /var/tmp//cc5FCpmq.out
error: command 'gcc-4.2' failed with exit status 1

The problem seems to be that uses "curl-config --static-libs",
and that yields

/usr/lib/libcurl.a -lssl -lcrypto -Wl,-weak-lldap -dynamic -Os -pipe -g0
-Wno-system-headers -Wl,-search_paths_first -Wl,-weak-lgssapi_krb5
-Wl,-weak-lkrb5 -Wl,-weak-lk5crypto -Wl,-weak-lcom_err -Wl,-weak-lresolv
-lssl -lcrypto -lz -lz

which /usr/lib/libcurl.a is a non-existent library. This is Xcode 3.2.

What's the workaround?

Received on 2009-10-02

These mail archives are generated by hypermail.

donate! Page updated September 25, 2009.
web site info

File upload with ASP.NET