curl-and-python

Re: Problem installing pycurl onto CentOS 5

From: Christopher Warner <cwarner_at_kernelcode.com>
Date: Mon, 28 Jun 2010 15:21:19 -0400

On Mon, Jun 28, 2010 at 12:02 PM, Jacobs, Brenda
<brenda.jacobs_at_teamaol.com>wrote:

> I'm trying to install pycurl onto a CentOS 5 machine and get failures. I'm
> new to Python, but it seems that the easy_install package should work. It
> worked great for the mysql bindings.
>
> My error is relating to an Xlinker argument apparently. Here is the output
> of easy_install:
>
> /opt/bcs/packages/python-modules-2.0/bin/easy_install-2.5 pycurl
> Searching for pycurl
> Reading http://pypi.python.org/simple/pycurl/
> Reading http://pycurl.sourceforge.net/
> Reading http://pycurl.sourceforge.net/download/
> Best match: pycurl 7.19.0
> Downloading http://pycurl.sourceforge.net/download/pycurl-7.19.0.tar.gz
> Processing pycurl-7.19.0.tar.gz
> Running pycurl-7.19.0/setup.py -q bdist_egg --dist-dir
> /tmp/easy_install-vDJCRz/pycurl-7.19.0/egg-dist-tmp-as8UJG
> Using curl-config (libcurl 7.19.3)
> gcc: argument to '-Xlinker' is missing
> error: Setup script exited with error: command 'gcc' failed with exit
> status 1
> So I tried to just download the pycurl package and install it myself using
> this:
> python setup.py install
>
> and get the same error with slightly more information
>
> 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 -pthread -shared build/temp.linux-x86_64-2.5/src/pycurl.o
> -L/opt/bcs/packages/curl-7.19.3/lib -L/opt/bcs/lib -L/opt/bcs/lib64
> -L/opt/bcs/packages/openssl/lib -L/opt/bcs/packages/zlib/lib -L/opt/bcs/lib
> -L/opt/bcs/lib64 -L/opt/bcs/packages/openssl/lib
> -L/opt/bcs/packages/zlib/lib -lcurl -lssh2 -lssl -lcrypto -lrt -lz -lssh2
> -lssl -lcrypto -lrt -lz -o build/lib.linux-x86_64-2.5/pycurl.so -Xlinker
> -rpath -Xlinker /opt/bcs/lib -Xlinker -Xlinker -rpath -Xlinker
> /opt/bcs/lib64 -Xlinker /opt/bcs/packages/curl-7.19.3/lib/libcurl.a -Xlinker
> -rpath -Xlinker /opt/bcs/lib -Xlinker -Xlinker -rpath -Xlinker
> /opt/bcs/lib64 -Xlinker
> gcc: argument to '-Xlinker' is missing
> error: command 'gcc' failed with exit status 1
> Any assistance would be greatly appreciated.
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
>
>
This is an environment problem with gcc from the looks of it. I don't have a
copy of CentOS 5 to test but I can't help beyond that as this doesn't seem
to be PyCurl or Python problem in specific. I'd check that your environment
is setup properly etc etc.

-- 
Christopher Warner
http://cwarner.kernelcode.com

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2010-06-28