在不存在的依赖项上的 RedHat 错误上安装 R [英] Install R on RedHat errors on dependencies that don't exist
问题描述
我之前在运行 RedHat EL6.5 的机器上安装了 R,但最近我在安装新软件包(即 install.packages())时遇到了问题.由于找不到解决方案,我尝试使用以下方法重新安装 R:
I have installed R before on a machine running RedHat EL6.5, but I recently had a problem installing new packages (i.e. install.packages()). Since I couldn't find a solution to this, I tried reinstalling R using:
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.检查使用:
I already checked, and blas-devel is installed, but the newest version is 0.2.8. Checked using:
yum info openblas-devel.x86_64
有什么关于出了什么问题的想法吗?谢谢.
Any thoughts as to what is going wrong? Thanks.
推荐答案
我遇到了同样的问题.不确定为什么 RHEL 的存储库中缺少这些包,但它们在 CentOS 6.5 中,因此如果您想将内容保留在包范例中,请使用以下解决方案:
I had the same issue. Not sure why these packages are missing from RHEL's repos, but they are in CentOS 6.5, so the follow solution works, if you want to keep things in the package paradigm:
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/lapack-devel-3.2.1-4.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/blas-devel-3.2.1-4.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/texinfo-tex-4.13a-8.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/libicu-devel-4.2.1-9.1.el6_2.x86_64.rpm
sudo yum localinstall *.rpm
干杯
更新:Leon 的回答更好——见下文.
这篇关于在不存在的依赖项上的 RedHat 错误上安装 R的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!