How to fix RCurl installation error xml2-config: Command not found
Problem:
While trying to install RCurl using
BiocManager::install("RCurl")
you see the following error message:
> BiocManager::install("RCurl")
/bin/bash: Zeile 1: xml2-config: Befehl nicht gefunden
/bin/bash: Zeile 1: xml2-config: Befehl nicht gefunden
Solution
You need to install the libxml2
development headers which include the xml2-config
executable.
On Ubuntu, you can install it using
sudo apt -y install libxml2-dev