m0_54759627 2021-06-06 13:51 采纳率: 33.3%
浏览 126

R语言安装包时报错,请老师帮我看看,谢谢老师!

 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'

请问各位老师,这个问题怎么解决呢。

  • 写回答

1条回答 默认 最新

  • 有问必答小助手 2021-06-08 09:52
    关注

    你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,超出我们目前的服务范围,暂时无法为您解答。


    问答VIP目前服务范围为 :Python、Java、MySQL、Redis、MongoDB、HBase、Zookeeper、Kafka、Linux领域专业问题解答,为您提供解决问题的思路和指导。
    不提供源码代写、项目文档代写、论文代写、安装包资源发送或安装指导等服务。

    本次提问扣除的有问必答次数,已经为您补发到账户,我们后续会持续优化,扩大我们的服务范围,为您带来更好地服务。

    评论

报告相同问题?

悬赏问题

  • ¥15 有关类的报错,在模块里调用另一个模块的方法下的变量时出错
  • ¥15 delphi7 HMAC_SHA256方式加密
  • ¥15 关于#qt#的问题:我想实现qcustomplot完成坐标轴
  • ¥15 下列c语言代码为何输出了多余的空格
  • ¥15 kali linux用wget archive.kali.org/archive-key.asc指令下载签名无效(失败)
  • ¥15 openHarmony 利用c++程序在dayu210开发板上实现拉取RTSP视频流并且在屏幕上显示
  • ¥15 GD32H757的can通信配置
  • ¥20 nist随机数测试的问题
  • ¥20 帮我解决这个项目,thank you各位程序员
  • ¥15 哪位能用ea软件做一下,有偿