Error cannot find xml2-config error

June 08, 2015

How to fix the cannot find xml2-config error

There are two ways to fix this error. Either use the XML package from the Ubuntu respository:

sudo apt-get install r-cran-xml  

Or you can manually install the required library:

sudo apt-get update  
sudo apt-get install libxml2-dev