簡體   English   中英

在不存在的依賴項上安裝R on RedHat錯誤

[英]Install R on RedHat errors on dependencies that don't exist

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

DONE!

我想我應該參考解決方案的網站:

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

我遇到過同樣的問題。 不知道為什么RHEL的repos中缺少這些軟件包,但是它們在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

干杯


更新:萊昂的答案更好 - 見下文。

我能提出的最佳解決方案是從源代碼安裝。 這工作並沒有太糟糕。 但是,現在它不在我的包管理器中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM