R 在不支持';不存在

R 在不支持';不存在,r,redhat,yum,R,Redhat,Yum,我以前在运行RedHat EL6.5的机器上安装过R,但最近在安装新软件包(即install.packages())时遇到问题。由于找不到解决方案,我尝试使用以下方法重新安装R: sudo yum remove R 及 但现在我明白了: .... ---> Package R-core-devel.x86_64 0:3.1.0-5.el6 will be installed --> Processing Dependency: blas-devel >= 3.0 for pa

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

sudo yum remove 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

你有没有想到哪里出了问题?谢谢。

我能想到的最好的解决方案是从源代码安装。这起作用了,还不错。但是,现在它不在我的包管理器中。

我也有同样的问题。不确定为什么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的答案更好——见下文。

执行以下操作:

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

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


    在谷歌上粗略搜索一下blas-devel,发现最新版本至少是3.2版。您可能曾经安装过旧版本的R,而新版本取决于RedHat中不提供的BLAS版本?可以通过
    sudo-yum-install-lapack-devel
    等方法解决此问题。。直到错误停止。
    sudo-yum-install-lapack-devel
    不起作用。返回:
    没有可用的包lapack-devel。
    Scott-您是对的,blas-devel在yum中不可用。修复此问题的最佳方法是什么?我知道这是一篇老文章,但这在rhel7-
    sudo-yum-install上对我有效https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    在安装texinfo-tex-5.1-4.el7.x86654时,它抱怨需要tex(epsd.tex),但我不知道哪个软件包提供该功能。显然,这是在RHEL7上的(并且使用CentOS7软件包)。您正在尝试使用rpm或yum进行安装吗?yum应尝试解析依赖项。它是yum。将类似的CentOS repo临时添加到/etc/yum.repos.d,然后只安装缺少的依赖项,然后删除它并安装R修复了该问题。这显然是RHEL包依赖项的问题/缺陷。我必须小心确保所有其他软件包都来自RHEL repos,而不是CentOS,因此在CentOS repo处于活动状态时安装R本身不是一个好主意。很高兴你找到了答案。当我去年偶然发现这一点时,我也很惊讶Centos回购协议似乎比RHEL更完整。它们在RHEL可选RPM中。参见Leon的答案。RHEL7也适用于[rhel-7-server-optional-rpms]更改。
    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