Balling’s Bits

Installing R Packages RCurl and XML on Ubuntu 14.04

Installing R packages RCurl and XML on a fresh Ubuntu 14.04 LTS throws a few errors.

RCurl throws the following error:

1
2
3
checking for curl-config... no
Cannot find curl-config
ERROR: configuration failed for package ‘RCurl’

The fix is easy. Install libcurl4:

1
sudo apt-get install libcurl4-openssl-dev

And then re-install the RCurl package.

XML throws another error:

1
2
3
checking for xml2-config... no
Cannot find xml2-config
ERROR: configuration failed for package ‘XML’

To fix it install libxml2:

1
sudo apt-get install libxml2-dev

And then re-install the XML package.

Comments