Exception: `curl-config' not found -- please install the libcurl development files
See complete stacktrace: https://gist.github.com/836523
Tornado is looking for the latest pycurl, which is version 7.19.0. And that's where the error happens.
The same error raised when running `sudo easy_install pycurl`
I usually install pycurl via `apt-get install python-pycurl` so i'm not sure whether pycurl in easy_install repo has always been broken or not.
OS: Ubuntu 10.04 LTS 64bit
Thought this might be informative.
- Didip -
installing pycurl via `apt-get install python-pycurl` on Ubuntu 10.04 TLS works as expected (version: 1.19.0-3).
Here's the dpkg info: https://gist.github.com/836555
I guess I'm surprised why easy_install didn't recognize it.
- Didip -
Hmm, that's unfortunate. Most of my testing was with pip and virtualenv, although now that I've tried it again I see that it shouldn't have worked in the first place. pip in a virtualenv appears to see out to the system's version of pycurl when it shouldn't (easy_install does the right thing, i.e. it can't see pycurl from inside a --no-site-packages virtualenv). Everything works for me when I try to install tornado system-wide, though. Are you using virtualenv (with or without --no-site-packages)?-BenOn Sun, Feb 20, 2011 at 6:42 PM, Didip Kerabat <did...@gmail.com> wrote:
Unfortunately, python-pycurl ubuntu package was already installed.This is an upgrade attempt to existing Tornado app in production.
* Without a virtualenv and with the python-pycurl ubuntu package installed, it works no matter how I try to install tornado
I'm sorry for the late reply, I had family dinner party to take care.* Without a virtualenv and with the python-pycurl ubuntu package installed, it works no matter how I try to install tornadoThat was the path I chose (no virtualenv and no pip) and easy_install couldn't seemed to figure out the pycurl dependency.
FWIW, pip/virtualenv works for me (Ubuntu 9.10) using symlinks to the
system (apt-get installed) pycurl.
I use this wrapper for virtualenv:
http://pypi.python.org/pypi/orb/
which does the symlinking automatically, giving a typical setup like:
$ easy_install -Z orb
$ orb init working.orb --no-site-packages
$ cd working.orb
$ orb install tornado
$ # alternatively, orb install -e
git+https://github.com/facebook/tornado.git@master#egg=tornado-master
$ orb link pycurl psycopg2 mx PIL etc. (anything installed with apt-get
or manually installed)
for example.
Another datapoint - light testing of both async clients with a Kyoto
Tycoon server shows no problems.
my point: let's try to switch to the simple http client as soon as possible ;)
don't know about ubuntu but for the record tornado + pycurl is very
painful to install on OS X. Different versions of OS X come with
different pycurl versions, and you have to download an appropriate
version from the pycurl website manually and compile it, and even then
it's more of an art than science as I've done this 5 times and each
time took me several hours, god knows why.
my point: let's try to switch to the simple http client as soon as possible ;)
@Jeremy: the newer the OS X version, the easier it is generally
speaking :) 10.6 does work, but 10.5.8 is a nightmare, and everything
below that is even worse.
Though it is just a matter of time until libcurl gets updated ahead of
an os x release, and the linux guys make the easy_install pycurl work
against the latest libcurl - that's when problems creep in - anytime
you have to install a different libcurl version on os x...