How to fix RCurl installation error Cannot find curl-config


While trying to install RCurl using


you see the following error message:

> BiocManager::install("RCurl")
'getOption("repos")' replaces Bioconductor standard repositories, see
'?repositories' for details

replacement repositories:

Bioconductor version 3.12 (BiocManager 1.30.16), R 4.0.4 (2021-02-15)
Installing package(s) 'RCurl'
versuche URL ''
Content type 'application/x-gzip' length 731035 bytes (713 KB)
downloaded 713 KB

* installing *source* package ‘RCurl’ ...
** Paket ‘RCurl’ erfolgreich entpackt und MD5 Summen überprüft
** using staged installation
checking for curl-config... no
Cannot find curl-config
ERROR: configuration failed for package ‘RCurl’
* removing ‘/usr/local/lib/R/site-library/RCurl’

The downloaded source packages are in
In .inet_warning(msg) :
  installation of package ‘RCurl’ had non-zero exit status


You need to install the libcurl development headers which include the curl-config executable.

On Ubuntu, you can install it using

sudo apt -y install libcurl4-openssl-dev