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'
请问各位老师,这个问题怎么解决呢。
你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,超出我们目前的服务范围,暂时无法为您解答。
问答VIP目前服务范围为 :Python、Java、MySQL、Redis、MongoDB、HBase、Zookeeper、Kafka、Linux领域专业问题解答,为您提供解决问题的思路和指导。
不提供源码代写、项目文档代写、论文代写、安装包资源发送或安装指导等服务。
本次提问扣除的有问必答次数,已经为您补发到账户,我们后续会持续优化,扩大我们的服务范围,为您带来更好地服务。