文档库 最新最全的文档下载
当前位置:文档库 › R安装问题

R安装问题

R中安装XML包时出现Cannot find xml2-config的问题解决

>install.packages("XML")
....
checking for xml2-config... no
Cannot find xml2-config
ERROR: configuration failed for package ‘XML’
* removing ‘/home/abraham/R/i686-pc-linux-gnu-library/2.13/XML’

The downloaded packages are in
‘/tmp/RtmpUsckPl/downloaded_packages’
Warning message:
In install.packages() :
installation of package 'XML' had non-zero exit status
安装libxml2-dev库
sudo apt-get install libxml2-dev
再重新安装XML(install.packages("XML"))包即可完成。

安装RCurl包
checking for curl-config... no
Cannot find curl-config
ERROR: configuration failed for package ‘RCurl’
* removing ‘/usr/local/lib/R/site-library/RCurl’
解决:
sudo apt-get install libcurl4-gnutls-dev

相关文档
相关文档 最新文档