我之前在运行 RedHat EL6.5 的机器上安装过 R,但最近在安装新软件包(即 install.packages())时遇到了问题。由于我找不到解决方案,我尝试使用以下命令重新安装 R:
sudo yum remove R
and
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
对于出了什么问题有什么想法吗?谢谢。
请执行下列操作:
- vim /etc/yum.repos.d/redhat.repo
- 将文件的 [rhel-6-server-optional-rpms] 部分中的enabled = 0 更改为enabled=1
- 百胜安装R
DONE!
我想我应该参考解决方案的网站:
https://bluehatrecord.wordpress.com/2014/10/13/installing-r-on-red-hat-enterprise-linux-6-5/ https://bluehatrecord.wordpress.com/2014/10/13/installing-r-on-red-hat-enterprise-linux-6-5/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)