R安装包时报错:
gfortran: fatal error: cannot execute ‘f951’: execvp: No such file or directory compilation terminated.
代码如下:
> if (!requireNamespace("BiocManager", quietly = TRUE))
+ install.packages("BiocManager")
>
> BiocManager::install("impute")
'getOption("repos")' replaces Bioconductor standard repositories, see '?repositories' for
details
replacement repositories:
CRAN: https://cran.rstudio.com/
Bioconductor version 3.13 (BiocManager 1.30.15), R 4.1.0 (2021-05-18)
Installing package(s) 'impute'
Package which is only available in source form, and may need compilation of
C/C++/Fortran: ‘impute’
Do you want to attempt to install these from sources? (Yes/no/cancel) Yes
installing the source package ‘impute’
trying URL 'https://bioconductor.org/packages/3.13/bioc/src/contrib/impute_1.66.0.tar.gz'
Content type 'application/x-gzip' length 641577 bytes (626 KB)
==================================================
downloaded 626 KB
* installing *source* package ‘impute’ ...
** using staged installation
** libs
/opt/R/arm64/bin/gfortran -mtune=native -fno-optimize-sibling-calls -fPIC -Wall -g -O2 -c knnimpute.f -o knnimpute.o
gfortran: fatal error: cannot execute ‘f951’: execvp: No such file or directory
compilation terminated.
make: *** [knnimpute.o] Error 1
ERROR: compilation failed for package ‘impute’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/impute’
The downloaded source packages are in
‘/private/var/folders/p1/nddxkv49603274lxlkfvy6500000gn/T/RtmpSmz9s4/downloaded_packages’
Old packages: 'Matrix', 'mgcv'
请问各位老师,这个问题怎么解决呢。