首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装租赁包

无法安装租赁包
EN

Stack Overflow用户
提问于 2015-06-23 16:54:13
回答 3查看 15K关注 0票数 16

我需要安装R版本3.1.2 (2014-10-31)的租赁包。

我知道这些错误:

代码语言:javascript
复制
    checking whether the C++ compiler supports the long long type... no
*** stringi cannot be built. Upgrade your C++ compiler's settings
ERROR: configuration failed for package ‘stringi’
* removing ‘/usr/local/lib64/R/library/stringi’
ERROR: dependency ‘stringi’ is not available for package ‘stringr’
* removing ‘/usr/local/lib64/R/library/stringr’
ERROR: dependency ‘stringr’ is not available for package ‘httr’
* removing ‘/usr/local/lib64/R/library/httr’
ERROR: dependency ‘stringr’ is not available for package ‘selectr’
* removing ‘/usr/local/lib64/R/library/selectr’
ERROR: dependencies ‘httr’, ‘selectr’ are not available for package ‘rvest’
* removing ‘/usr/local/lib64/R/library/rvest’

对如何安装R包租赁有什么想法吗?

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2015-06-23 18:40:15

我能够构建如下所示的弦I包:

代码语言:javascript
复制
install.packages('stringi', configure.args='--disable-cxx11')
票数 2
EN

Stack Overflow用户

发布于 2018-08-07 04:58:29

当我试图在新安装的Ubuntu18.04 Rcurl, XML, rvest, xml2上安装Rstudio版本1.1.456中的时,我需要依赖关系,比如。总之,有一堆缺少的依赖项。这个答案可能更适合作为Ubuntu18.04的一个评论,但我没有那么多的声誉。因此,我只想在这里总结一下Ubuntu18.04的解决方案。

在终点站,运行:

代码语言:javascript
复制
 sudo apt-get install libcurl4-openssl-dev libssl-dev
 sudo apt-get install libxml2-dev

然后在Rstudio内部

代码语言:javascript
复制
install.packages("xml2")
install.packages("rvest")
install.packages("tidyverse")  # might need other dependencies installed in Rstudio

抓到tidyverse了!

在航站楼:

代码语言:javascript
复制
sudo apt-get install libmysqlclient-dev  ## for RMySQL

然后在Rstudio中

代码语言:javascript
复制
source("https://bioconductor.org/biocLite.R")
biocLite("DESeq2")
biocLite('RUVSeq')             ## might have messages as following

installation path not writeable, unable to update packages: cluster, foreign, MASS, Matrix, mgcv, nlme, survival

在航站楼:

代码语言:javascript
复制
sudo R                      ## give R the root permission
## in the R session within the terminal
pks <- c('cluster', 'foreign', 'MASS', 'Matrix', 'mgcv', 'nlme', 'survival')
install.packages(pks)
q()

这是我自己的经验。希望这个有一个好的Generalizability.

票数 11
EN

Stack Overflow用户

发布于 2017-12-26 17:04:07

我对这个问题的回答肯定迟了。尽管如此,也许有人会发现它很有用。

我遇到了同样的问题,所以我在shell上运行了这个命令:

代码语言:javascript
复制
sudo apt-get upgrade pkg-config

对我起作用了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31008877

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档