簡體   English   中英

從 CRAN 存檔安裝 R package 具有非零退出狀態

[英]Installing R package from CRAN archive has non-zero exit status

我需要安裝fwildclusterboot ,這是一個已從 CRAN 中刪除的 package。

我嘗試按如下方式安裝它:

library(devtools)
install_url("https://cran.r-project.org/src/contrib/Archive/fwildclusterboot/fwildclusterboot_0.9.tar.gz")

但是,我最終在安裝過程結束時收到以下錯誤消息(我有一台 MacBook,MacOS Monterey 12.5.1,我的 RStudio 是版本 2022.07.1):

ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [fwildclusterboot.so] Error 1
ERROR: compilation failed for package ‘fwildclusterboot’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/fwildclusterboot’
Warning message:
In i.p(...) :
  installation of package ‘/var/folders/1n/m1g55_416rj6m4w3v6v9x2340000gn/T//RtmppWJnds/fileaae0dc5e6aa/fwildclusterboot_0.9.tar.gz’ had non-zero exit status

我該如何解決這個問題?

幾個月前我遇到了同樣的問題,這是簡單的方法,Go 到: https://github.com/fxcoudert/gfortran-for-macOS/releases你會找到最新版本的 Monterey 和一個簡單的安裝程序( .dmg), select,具體取決於您的計算機是 ARM 還是基於 Intel 的計算機。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM