操作系统: 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)
发布于 2019-03-17 17:33:06
我解决了安装gfortran和重新运行install.packages("tuneR")的问题
sudo apt install gfortran发布于 2019-03-17 07:37:31
您可以尝试从RStudio下载源代码并进行安装。tuneR可从以下网址获得:
https://CRAN.R-project.org/package=tuneR
下载.tar.gz文件并在本地安装。可以使用通过RStudio (Packages选项卡-> change install from: Package)进行安装,也可以通过终端使用进行安装
R CMD INSTALL -l /path tuneR.tar.gz另一种选择是
> library(devtools)
> install_github("cran/tuneR")https://stackoverflow.com/questions/55202304
复制相似问题