Wednesday, September 26, 2018

Cannot find xml2-config - R Studio - CentOS

Came across this error while installing CINNA package on CentOS.


checking for xml2-config... no

Cannot find xml2-config
ERROR: configuration failed for package XML
* removing /home/datta/R/x86_64-redhat-linux-gnu-library/3.4/XML
Warning in install.packages :
  installation of package XML had non-zero exit status

On terminal:


$ sudo yum install libxml2-devel

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile 
 
 * base: centos.netonboard.com
 * epel: mirror.premi.st
 * extras: mirror.myren.net.my
 * ius: hkg.mirror.rackspace.com
 * nux-dextop: mirror.li.nux.ro
 * updates: centos.ipserverone.com

Resolving Dependencies
--> Running transaction check
---> Package libxml2-devel.x86_64 0:2.9.1-6.el7_2.3 will be installed
--> Finished Dependency Resolution

Dependencies Resolved
...................

Installed:
  libxml2-devel.x86_64 0:2.9.1-6.el7_2.3                                                                                                                                                                          
Complete!

then in R:

install.packages("XML")

This worked without error! 

No comments:

Post a Comment