【问题标题】:“installation of package tuneR had non-zero exit status” in RR中的“安装包tuneR具有非零退出状态”
【发布时间】:2019-03-16 22:54:17
【问题描述】:

操作系统:Ubuntu 18.04 R 版本:3.4.3 和 3.4.4

我尝试在 R 3.4.3 和 R 3.4.4 中使用 install.packages("tuneR") 安装 tuneR,但出现此错误:

* installing *source* package ‘signal’ ...
 package ‘signal’ successfully unpacked and MD5 sums checked
 libs
gfortran   -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-AitvI6/r-base-3.4.4=. -fstack-protector-strong  -c dpchim.f -o dpchim.o
/bin/bash: gfortran: command not found
/usr/lib/R/etc/Makeconf:182: recipe for target 'dpchim.o' failed
make: *** [dpchim.o] Error 127
ERROR: compilation failed for package ‘signal’
* removing ‘/home/helias/R/x86_64-pc-linux-gnu-library/3.4/signal’
ERROR: dependency ‘signal’ is not available for package ‘tuneR’
* removing ‘/home/helias/R/x86_64-pc-linux-gnu-library/3.4/tuneR’
The downloaded source packages are in
    ‘/tmp/RtmpL1f4HR/downloaded_packages’
Warning messages:
1: In install.packages("tuneR") :
  installation of package ‘signal’ had non-zero exit status
2: In install.packages("tuneR") :
  installation of package ‘tuneR’ had non-zero exit status

(我也用过 RStudio)

【问题讨论】:

  • 你试过从 git repo 安装吗?我以前发现这有帮助,但仅限于其他包,github.com/cran/tuneR>
  • 不,我没有,反正我解决了安装 gfortran,我错过了。

标签: r tuner


【解决方案1】:

我解决了安装 gfortran 并重新运行 install.packages("tuneR")

sudo apt install gfortran

【讨论】:

    【解决方案2】:

    您可以尝试从 RStudio 下载源代码并安装。 tuneR 可在以下位置获得:

    https://CRAN.R-project.org/package=tuneR

    下载 .tar.gz 文件并在本地安装。您可以使用通过 RStudio 安装(Packages 选项卡 -> 从:Package 更改安装),也可以使用通过终端安装

    R CMD INSTALL -l /path tuneR.tar.gz
    

    另一种选择是

    > library(devtools)
    > install_github("cran/tuneR")
    

    【讨论】:

      猜你喜欢
      • 2020-04-15
      • 1970-01-01
      • 2016-11-25
      • 2016-08-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-18
      • 2015-11-25
      相关资源
      最近更新 更多