简体   繁体   English

install.packages 中的警告:package“igraph”的安装具有非零退出状态

[英]Warning in install.packages : installation of package ‘igraph’ had non-zero exit status

I want to install phyloseq from BioConductor.我想从 BioConductor 安装 phyloseq。 When I do so, and try to load it, I get an error about igraph (even though I set dependencies to be TRUE).当我这样做并尝试加载它时,我收到有关 igraph 的错误(即使我将依赖项设置为 TRUE)。 I have tried installing igraph independently, and that is also not working, with non-zero exit status.我试过独立安装 igraph,但也没有用,退出状态为非零。

I am using RStudio我正在使用 RStudio


R version 3.4.0 (2017-04-21) R 版本 3.4.0 (2017-04-21)
Platform: x86_64-apple-darwin15.6.0 (64-bit)平台:x86_64-apple-darwin15.6.0(64 位)
Running under: OS X El Capitan 10.11.6运行于:OS X El Capitan 10.11.6

Does anyone have any advice?有人有建议吗? Errors are pasted below.错误粘贴在下面。

Thank you for your help!谢谢您的帮助!

Here is my command:这是我的命令:

install.packages("phyloseq", dependencies = TRUE)

Here is the warning:这是警告:

Warning in install.packages: install.packages 中的警告:

dependency 'igraph' is not available依赖项“igraph”不可用


Here I try to load the package I want: library("phyloseq")在这里我尝试加载我想要的 package: library("phyloseq")

Here is the warning: Error:这是警告:错误:

package or namespace load failed for 'phyloseq' in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) . package 或loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])中“phyloseq”的命名空间加载失败。 there is no package called 'igraph'没有名为“igraph”的 package

Here I try to install igraph directly: install.packages("igraph", dependencies = TRUE)这里我尝试直接安装igraph: install.packages("igraph", dependencies = TRUE)

Here is the compilation failure:这是编译失败:

ERROR: compilation failed for package 'graph' Warning in install.packages: installation of package 'igraph' had non-zero exit status错误:package 'graph' 的编译失败 install.packages 中的警告: installation of package 'igraph' had non-zero exit status

Open a new terminal and type:打开一个新终端并输入:

xcode-select --install

I went to the developer page of igraph and downloaded the package into my r library folder.我去了 igraph 的开发者页面并将 package 下载到我的 r 库文件夹中。 For whatever reason, r does not pull igraph into the library folder when called on the command line so you have to do it manually.无论出于何种原因,r 在命令行上调用时都不会将 igraph 拉入库文件夹,因此您必须手动执行此操作。 Shout out to my prof who showed me how to do this.向我的教授大声喊叫,他向我展示了如何做到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 install.packages 中的警告:安装包“tidyverse”的退出状态非零 - Warning in install.packages : installation of package ‘tidyverse’ had non-zero exit status 无法安装.packages():系统调用失败:无法分配内存; 包的安装具有非零退出状态 - Unable to install.packages(): system call failed: Cannot allocate memory; installation of package had non-zero exit status 安装包 &#39;stringr&#39; 和 &#39;stringi&#39; 的退出状态非零 - Installation of packages ‘stringr’ and ‘stringi’ had non-zero exit status R:安装包语言服务器具有非零退出状态 - R: install packages languageserver had non-zero exit status 在Mac上的R或RStudio中安装“ MareyMap”软件包。 “安装软件包的退出状态为非零” - Install package “MareyMap” in R or RStudio on Mac. “Installation of package had non-zero exit status” 软件包“图表”的安装退出状态为非零 - installation of package ‘recharts’ had non-zero exit status 在 Ubuntu 上安装包“devtools”的退出状态为非零 - installation of package ‘devtools’ had non-zero exit status on Ubuntu 安装包“预测”的退出状态非零 - Installation of package ‘forecast’ had non-zero exit status 软件包“ rgl”的安装退出状态为非零 - Installation of package ‘rgl’ had non-zero exit status package 'tinytex' 的安装具有非零退出状态 - installation of package 'tinytex' had non-zero exit status
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM