gpt4 book ai didi

r - 在 archlinux 中安装 R 的插入符号包的问题

转载 作者:行者123 更新时间:2023-12-04 02:11:47 26 4
gpt4 key购买 nike

我正在尝试安装软件包 caret在 R 中一段时间​​了,我收到此错误消息:

*installing *source* package ‘minqa’ ...
** package ‘minqa’ successfully unpacked and MD5 sums checked
** libs
gfortran -fpic -g -O2 -c altmov.f -o altmov.o
make: gfortran: Command not found
make: *** [altmov.o] Error 127
/usr/lib64/R/etc/Makeconf:155: recipe for target 'altmov.o' failed
ERROR: compilation failed for package ‘minqa’
* removing ‘/home/mohammad/R/x86_64-pc-linux-gnu-library/3.3/minqa’
Warning in install.packages :
installation of package ‘minqa’ had non-zero exit status
* installing *source* package ‘SparseM’ ...
** package ‘SparseM’ successfully unpacked and MD5 sums checked
** libs
gfortran -fpic -g -O2 -c bckslv.f -o bckslv.o
make: gfortran: Command not found
/usr/lib64/R/etc/Makeconf:155: recipe for target 'bckslv.o' failed
make: *** [bckslv.o] Error 127
ERROR: compilation failed for package ‘SparseM’
* removing ‘/home/mohammad/R/x86_64-pc-linux-gnu-library/3.3/SparseM’
Warning in install.packages :
installation of package ‘SparseM’ had non-zero exit status
ERROR: dependency ‘minqa’ is not available for package ‘lme4’
* removing ‘/home/mohammad/R/x86_64-pc-linux-gnu-library/3.3/lme4’
Warning in install.packages :
installation of package ‘lme4’ had non-zero exit status
ERROR: dependency ‘SparseM’ is not available for package ‘quantreg’
* removing ‘/home/mohammad/R/x86_64-pc-linux-gnu-library/3.3/quantreg’
Warning in install.packages :
installation of package ‘quantreg’ had non-zero exit status
ERROR: dependency ‘lme4’ is not available for package ‘pbkrtest’
* removing ‘/home/mohammad/R/x86_64-pc-linux-gnu-library/3.3/pbkrtest’
Warning in install.packages :
installation of package ‘pbkrtest’ had non-zero exit status
ERROR: dependencies ‘pbkrtest’, ‘quantreg’ are not available for package ‘car’
* removing ‘/home/mohammad/R/x86_64-pc-linux-gnu-library/3.3/car’
Warning in install.packages :
installation of package ‘car’ had non-zero exit status
ERROR: dependency ‘car’ is not available for package ‘caret’
* removing ‘/home/mohammad/R/x86_64-pc-linux-gnu-library/3.3/caret’
Warning in install.packages :
installation of package ‘caret’ had non-zero exit status

The downloaded source packages are in
‘/tmp/RtmpVBZAgE/downloaded_packages’

现在根据一些帖子,我尝试安装 minqa , SparseM , lme4 , car ... 分别地。它没有正确安装。我怀疑的主要问题是没有 gfortran我的 archlinux 中的库。我试图找到包裹 gfortran在使用 pacman 的 arch 存储库中。它不在那里,所以最后我只是被卡住了。有没有人有解决方案或以前遇到过这个问题。谢谢。

最佳答案

我有一个类似的问题。对于遇到此问题的任何其他人,这是您需要安装的软件包。它是 gcc-fortran 6.2.1-1

要安装它:

sudo pacman -S gcc-fortran

https://www.archlinux.org/packages/core/x86_64/gcc-fortran/

关于r - 在 archlinux 中安装 R 的插入符号包的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37352410/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com