Problem installing pycurl onto CentOS 5

From: Jacobs, Brenda <>
Date: Mon, 28 Jun 2010 12:02:46 -0400

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
Best match: pycurl 7.19.0
Processing pycurl-7.19.0.tar.gz
Running pycurl-7.19.0/ -q bdist_egg --dist-dir
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 install
and get the same error with slightly more information
 python 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/
-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.

Received on 2010-06-28