在不存在的依赖项上安装R on RedHat错误

时间:2014-07-11 23:55:17

标签: r redhat yum

我之前在运行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

关于出了什么问题的任何想法?感谢。

3 个答案:

答案 0 :(得分:16)

执行以下操作:

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

    我想我应该参考解决方案的网站:

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

答案 1 :(得分:8)

我有同样的问题。不确定为什么这些软件包在RHEL的存储库中丢失,但是它们在CentOS 6.5中,所以如果你想将这些软件包放在软件包范例中,那么以下解决方案是有效的:

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的回答更好 - 见下文。

答案 2 :(得分:1)

我能想出的最佳解决方案是从源代码安装。这工作并没有太糟糕。但是,现在它不在我的包管理器中。