curl-and-python
Re: Issues installing pycURL on Mac OS X 10.4.11
Date: Fri, 15 Apr 2011 08:19:38 +0200
On 14 April 2011 22:50, Kai umezawa <k_umezawa11_at_hotmail.com> wrote:
> Hi All,
>
> I'm trying to install pycURL 7.18.2 on Mac OS X 10.4 for use with the
> Tornado Server. I have libcURL 7.21.4 installed.
>
> I've tried Googling around for this type of error, but as I am admittedly
> quite new to python I am a little lost.
>
> Below is the output:
>
> Using curl-config (libcurl 7.21.4)
> running install
> running build
> running build_py
> running build_ext
> building 'pycurl' extension
> gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -g -O2 -DNDEBUG -g -O3
> -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1
> -I/usr/local/include
> -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c
> src/pycurl.c -o build/temp.macosx-10.3-fat-2.7/src/pycurl.o
> gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined
> dynamic_lookup -arch ppc -arch i386 -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
> build/temp.macosx-10.3-fat-2.7/src/pycurl.o -L/usr/local/lib -lcurl -lssl
> -lcrypto -lldap -lz -lssl -lcrypto -lldap -lz -o
> build/lib.macosx-10.3-fat-2.7/pycurl.so /usr/local/lib/libcurl.a
> /usr/bin/ld: -syslibroot: multiply specified/usr/bin/ld: -syslibroot:
> multiply specified
>
> collect2: collect2: ld returned 1 exit status
> ld returned 1 exit status
> lipo: can't open input file: /var/tmp//ccd6wbGS.out (No such file or
> directory)
> error: command 'gcc-4.0' failed with exit status 1
>
> Any help would be greatly appreciated.
The problem seems to be the multiple instances of "-isysroot
/Developer/SDKs/MacOSX10.4u.sdk" in:
gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined
dynamic_lookup -arch ppc -arch i386 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -g
build/temp.macosx-10.3-fat-2.7/src/pycurl.o -L/usr/local/lib -lcurl
-lssl -lcrypto -lldap -lz -lssl -lcrypto -lldap -lz -o
build/lib.macosx-10.3-fat-2.7/pycurl.so /usr/local/lib/libcurl.a
I've never tried building pycurl on OS X, so not sure what the process
is. Maybe you could just try running that command manually (in the
right place) except remove the duplicated "-isysroot ..." parts.
-- Michael Wood <esiotrot_at_gmail.com> _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-pythonReceived on 2011-04-15