gpt4 book ai didi

r - 在 RedHat 上安装 R 时出现依赖项不存在的错误

转载 作者:行者123 更新时间:2023-12-03 01:37:43 25 4
gpt4 key购买 nike

我之前在运行 RedHat EL6.5 的机器上安装过 R,但最近在安装新软件包(即 install.packages())时遇到了问题。由于我找不到解决方案,我尝试使用以下方法重新安装 R:

sudo yum remove R

sudo yum install R

但现在我明白了:

....
---> Package R-core-devel.x86_64 0:3.1.0-5.el6 will be installed
--> Processing Dependency: blas-devel >= 3.0 for package: R-core-devel-3.1.0-5.el6.x86_64
--> Processing Dependency: libicu-devel for package: R-core-devel-3.1.0-5.el6.x86_64
--> Processing Dependency: lapack-devel for package: R-core-devel-3.1.0-5.el6.x86_64
---> Package xz-devel.x86_64 0:4.999.9-0.3.beta.20091007git.el6 will be installed
--> Finished Dependency Resolution
Error: Package: R-core-devel-3.1.0-5.el6.x86_64 (epel)
Requires: blas-devel >= 3.0
Error: Package: R-core-devel-3.1.0-5.el6.x86_64 (epel)
Requires: lapack-devel
Error: Package: R-core-devel-3.1.0-5.el6.x86_64 (epel)
Requires: libicu-devel
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

我已经查过了,blas-devel已经安装了,但是最新版本是0.2.8。检查使用:

yum info openblas-devel.x86_64

对于出了什么问题有什么想法吗?谢谢。

最佳答案

执行以下操作:

  1. vim/etc/yum.repos.d/redhat.repo
  2. 将文件的 [rhel-6-server-optional-rpms] 部分中的enabled = 0 更改为enabled=1
  3. yum 安装 R

完成!

我想我应该引用解决方案的网站:

https://bluehatrecord.wordpress.com/2014/10/13/installing-r-on-red-hat-enterprise-linux-6-5/

关于r - 在 RedHat 上安装 R 时出现依赖项不存在的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24708213/

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