Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Could not run curl-config: [Errno 2] No such file or directory" when installing pycurl

On Debian I needed the following packages to fix this

sudo apt install libcurl4-openssl-dev libssl-dev

Similarly with yum package manager

yum install libcurl-devel

If you use dnf, use

dnf install libcurl-devel

in my case this fixed the problem:

sudo apt-get install libssl-dev libcurl4-openssl-dev python-dev

as explained here


In Alpine linux you should do:

apk add curl-dev python3-dev libressl-dev

Same solution provided by @Michael Rice works for Ubuntu 18.04 as well

Ubuntu 18.04 LTS

sudo apt install libcurl4-openssl-dev libssl-dev

Al thought it is mentioned in comments of Michael's answer but thought highlight for easy of use.


I encountered the same problem whilst trying to get Shinken 2.0.3 to fire up on Ubuntu. Eventually I did a full uninstall then reinstalled Shinken with pip -v. As it cleaned up, it mentioned:

Warning: missing python-pycurl lib, you MUST install it before launch the shinken daemons

Installed that with apt-get, and all the brokers fired up as expected :-)


That solved my problem on Ubuntu 14.04:

apt-get install libcurl4-gnutls-dev