我正在尝试安装 R 包 rexpokit,它是 BioGeoBears 的依赖项。该软件包的 CRAN 版本刚刚于 2023 年 10 月 10 日删除。
我尝试从存档下载并安装,但是当我尝试安装该软件包时,我收到此错误代码:
* installing *source* package ‘rexpokit’ ...
** using staged installation
** libs
/opt/R/arm64/bin/gfortran -mtune=native -fno-optimize-sibling-calls -fPIC -Wall -g -O2 -c lapack/blas_mod.f -o lapack/blas_mod.o
make: /opt/R/arm64/bin/gfortran: No such file or directory
make: *** [lapack/blas_mod.o] Error 1
ERROR: compilation failed for package ‘rexpokit’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/rexpokit’
Warning message:
In i.p(...) :
installation of package ‘/var/folders/p2/xv7xz2mj5j5g4fkgq63w8c340000gn/T//RtmpWwCt8B/filef0277b612bc4/rexpokit_0.26.6.2.tar.gz’ had non-zero exit status
还有其他人有幸通过后门方式为 BioGeoBears 安装此软件包吗?
您缺少 fortran 编译器。请浏览 CRAN for macOS 的专用部分https://mac.r-project.org/tools/,执行他们指示的所有操作,如果这些都不能解决问题,请回来。