操作系统: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)