ubuntu Rstudio-server安装devtools失败

来源:互联网 发布:java注释声明 编辑:程序博客网 时间:2024/06/08 08:47

R语言安装devtools失败

1.问题提示------------------------- ANTICONF ERROR ---------------------------Configuration failed because libxml-2.0 was not found. Try installing: * deb: libxml2-dev (Debian, Ubuntu, etc) * rpm: libxml2-devel (Fedora, CentOS, RHEL) * csw: libxml2_dev (Solaris)If libxml-2.0 is already installed, check that 'pkg-config' is in yourPATH and PKG_CONFIG_PATH contains a libxml-2.0.pc file. If pkg-configis unavailable you can set INCLUDE_DIR and LIB_DIR manually via:R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'ERROR: dependencies ‘httr’, ‘curl’, ‘rversions’ are not available for package ‘devtools’* removing ‘/usr/local/lib/R/site-library/devtools’##解决sudo apt-get install libcurl4-openssl-dev2.问题提示ERROR: dependency ‘xml2’ is not available for package ‘rversions’ERROR: dependency ‘rversions’ is not available for package ‘devtools’* removing ‘/usr/local/lib/R/site-library/devtools’##解决install.packages("xmls2")3.错误提示Configuration failed because libxml-2.0 was not found. Try installing: * deb: libxml2-dev (Debian, Ubuntu, etc) * rpm: libxml2-devel (Fedora, CentOS, RHEL) * csw: libxml2_dev (Solaris)If libxml-2.0 is already installed, check that 'pkg-config' is in yourPATH and PKG_CONFIG_PATH contains a libxml-2.0.pc file. If pkg-configis unavailable you can set INCLUDE_DIR and LIB_DIR manually via:R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'##解决sudo apt-get install libxml2-devinstall.packages("xmls2")install.packages("rversions")install.packages("devtools")##成功
0 0
原创粉丝点击