• R语言
  • R软件包安装的过程中出现 installation of package '**' had non-zero exit status,是怎么回事?

如题,我要安装一个软件包maSigPro,键入命令后,

source("http://www.bioconductor.org/biocLite.R")

biocLite("maSigPro")

,出现很多warning信息,我截取最后的一部分,如下:

Warning messages:

1: In install.packages(pkgs = pkgs, repos = repos, ...) :

installation of package 'widgetTools' had non-zero exit status

2: In install.packages(pkgs = pkgs, repos = repos, ...) :

installation of package 'tkWidgets' had non-zero exit status

3: In install.packages(pkgs = pkgs, repos = repos, ...) :

installation of package 'Mfuzz' had non-zero exit status

4: In install.packages(pkgs = pkgs, repos = repos, ...) :

installation of package 'maSigPro' had non-zero exit status

请问这是怎么回事?如何解决呢?

请大家多多帮忙啊,谢了^_^

had non-zero exit status是一个比较概括性的错误 一般可能是某个步骤中因为某种原因通不过而导致安装失败

如果是Linux的话 可能需要系统中先安装tcl/tk库 对于Ubuntu这种打包比较细的发行版 可能是tcl-dev tk-dev之类

其他系统可以参考

http://www.sciviews.org/_rgui/tcltk/index.html

2 年 后
7 个月 后

System: Linux Mint 17 --amd64 (base on Ubuntu14.04)

After typing the following command in the terminal, i solve the problem, thanks~

sudo apt-get install libcurl4-openssl-dev

sudo apt-get install libxml2-dev