ubuntu Rstudio-server安装devtools失败
2015-11-18 17:30
507 查看
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 your PATH and PKG_CONFIG_PATH contains a libxml-2.0.pc file. If pkg-config is 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-dev 2.问题提示 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 your PATH and PKG_CONFIG_PATH contains a libxml-2.0.pc file. If pkg-config is 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-dev install.packages("xmls2") install.packages("rversions") install.packages("devtools") ##成功
相关文章推荐
- Android过渡动画之共享元素实现以及遇到的一些问题
- 《统计学习方法》+感知机+C++代码(简单)实现
- Spark机器学习2
- BytesWritable使用
- 临时表汇总金额
- ajax调用aspx.cs中的WebMethod
- 判断是否为合法排序二叉树
- 实验1
- Spring配置文件
- UICopyLable
- 程序猿
- Android各种效果集合
- strnlen_s和strlen函数的区别
- 同时看过 unreal4 和 Unity 源代码的人觉得哪个引擎架构更好?
- CocoaPods的安装、使用及注意事项
- NSUserDefaults
- Category(分类)
- 应用js函数柯里化currying 与ajax 局部刷新dom
- php 类型转换
- 实验