views:

85

answers:

3

Hi all,

I can't install pycurl for python 2.6 on my server run CentOS 5. I use easy_install-2.6, but it output many errors.

output here: http://pastebin.com/Dw92H7fC

Help would be great. : )

A: 

I have no experience with CentOS in particular, but as a general rule of thumb you should always use your system's package manager to install things unless you have very special needs. The package manager makes installation/uninstallation a breeze, and more importantly, makes it simple to manage security updates and to avoid breakage when upgrading your OS.

In your case I believe the package manager is yum. It probably has some search function that allows you to look for pycurl, but I would guess the package's name is something like python-pycurl (at least it is in Debian and related distros). Hence

yum install python-pycurl

is the preferred way to install PyCURL.

gspr
with yum install python-pycurl, it will install pycurl for python2.4
Wzof
A: 

It looks as if you didn't install the development components of Python correctly (especially the headers: it can't find Python.h). Install them to the correct location and it should just work. Python usually does this pretty well if you run make install, so it makes me wonder how you installed it?

Ivo
A: 

How did you install python? You probably need to do:

yum install python26-devel

Aaron Croyle