安装“序号”包时遇到问题

Trouble installing "ordinal" package

提问人:Asanto 提问时间:10/19/2023 更新时间:10/19/2023 访问量:43

问:

我无法安装“序号”包,尽管所有其他包都可以正常安装。我正在使用最新版本的 R(根据“帮助”菜单中的“检查更新”按钮,没有可用的更新)。是否有其他人在安装该特定软件包时遇到问题?您对如何解决这个问题有什么建议吗?以下是错误输出:

typ> install.packages("ordinal")
also installing the dependency ‘ucminf’

Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/bin/macosx/big-sur-arm64/contrib/4.1:
  cannot open URL 'https://cran.rstudio.com/bin/macosx/big-sur-arm64/contrib/4.1/PACKAGES'
Packages which are only available in source form, and may need compilation of C/C++/Fortran: ‘ucminf’ ‘ordinal’
Do you want to attempt to install these from sources? (Yes/no/cancel) Yes
installing the source packages ‘ucminf’, ‘ordinal’

trying URL 'https://cran.rstudio.com/src/contrib/ucminf_1.2.0.tar.gz'
Content type 'application/x-gzip' length 16533 bytes (16 KB)
==================================================
downloaded 16 KB

trying URL 'https://cran.rstudio.com/src/contrib/ordinal_2022.11-16.tar.gz'
Content type 'application/x-gzip' length 805654 bytes (786 KB)
==================================================
downloaded 786 KB

* installing *source* package ‘ucminf’ ...
** package ‘ucminf’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
/opt/R/arm64/bin/gfortran -mtune=native -fno-optimize-sibling-calls  -fPIC  -Wall -g -O2  -c fortran.f -o fortran.o
make: /opt/R/arm64/bin/gfortran: No such file or directory
make: *** [fortran.o] Error 1
ERROR: compilation failed for package ‘ucminf’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/ucminf’
Warning in install.packages :
  installation of package ‘ucminf’ had non-zero exit status
ERROR: dependency ‘ucminf’ is not available for package ‘ordinal’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/ordinal’
Warning in install.packages :
  installation of package ‘ordinal’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/s7/z0jt94k5047g11wz1nbb3fnr0000gn/T/RtmpyoGcHs/downloaded_packages’e here

我使用了 install.packages(“ordinal”) 命令,但软件包没有安装。

错误处理 install.packages 序号

评论


答: 暂无答案