在RHEL 6上安装R.

时间:2013-09-11 17:29:24

标签: linux r install rhel6

我的问题与此类似 - Problems installing R on Linux CentOS 6.3

我安装了epel,但是当我运行yum install R时,我遇到了两个依赖问题 -

错误:包:R-core-3.0.1-2.el6.x86_64(epel)            需要:libjpeg.so.62(LIBJPEG_6.2)(64位)

错误:包:R-core-devel-3.0.1-2.el6.x86_64(epel)            需要:texinfo-tex

我尝试使用rpm文件安装texinfo-tex - http://rpm.pbone.net/index.php3/stat/4/idpl/15993086/dir/scientific_linux_6/com/texinfo-tex-4.13a-8.el6.x86_64.rpm.html

但是,这会让我陷入一个缺少依赖关系的长树。我下载并尝试安装5个不同的rpm文件,每次都有一些缺少的依赖项。 Ans这只是这棵依赖树的一个分支。我想,必须有一个更好的方法。有人可以帮忙吗?这让我疯了。

编辑:我正在尝试的另一个选项是从源代码构建R。但是不确定这是否适用于丢失的包。但是现在它说它找不到fortran编译器(“找不到F77编译器”)。我安装了gcc,认为它会有一个,但显然不是。

7 个答案:

答案 0 :(得分:9)

在RHEL6.4上做

subscription-manager repos --enable rhel-6-server-optional-rpms

yum install texinfo-tex

rpm -ivh http://mirror.unl.edu/epel/6/x86_64/epel-release-6-8.noarch.rpm

yum install R

欢呼Marten

答案 1 :(得分:4)

我有完全相同的问题,花了大约3个小时试图找到一个可以解决这个问题的RHEL 6的yum存储库。到目前为止,似乎添加此依赖项的人实际上并没有在添加依赖项后尝试安装它。这些依赖关系映射似乎不存在于我能找到的任何仓库中。

...

所以我很沮丧并尝试了这个命令

yum install texinfo-tex-4.13a-8.el6.x86_64.rpm

并且有效

    Loaded plugins: rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
CentALT                                                  |  951 B     00:00     
elrepo                                                   | 2.9 kB     00:00     
epel/metalink                                            |  13 kB     00:00     
epel-testing/metalink                                    |  13 kB     00:00     
mongodb                                                  |  951 B     00:00     
puppetlabs-enterprise-extras                             | 1.9 kB     00:00     
remi                                                     | 2.9 kB     00:00     
rhel-source                                              | 2.5 kB     00:00     
rhel-x86_64-server-6                                     | 1.8 kB     00:00     
rpmforge                                                 | 1.9 kB     00:00     
scl_python27                                             | 2.9 kB     00:00     
scl_ruby193                                              | 2.9 kB     00:00     
Setting up Install Process
Examining texinfo-tex-4.13a-8.el6.x86_64.rpm: texinfo-tex-4.13a-8.el6.x86_64
Marking texinfo-tex-4.13a-8.el6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package texinfo-tex.x86_64 0:4.13a-8.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package       Arch     Version         Repository                         Size
================================================================================
Installing:
 texinfo-tex   x86_64   4.13a-8.el6     /texinfo-tex-4.13a-8.el6.x86_64   387 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total size: 387 k
Installed size: 387 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : texinfo-tex-4.13a-8.el6.x86_64                               1/1 
  Verifying  : texinfo-tex-4.13a-8.el6.x86_64                               1/1 

Installed:
  texinfo-tex.x86_64 0:4.13a-8.el6                                              

Complete!

# yum install R
Loaded plugins: rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package R.x86_64 0:3.0.1-2.el6 will be installed
--> Processing Dependency: R-devel = 3.0.1-2.el6 for package: R-3.0.1-2.el6.x86_64
--> Running transaction check
---> Package R-devel.x86_64 0:3.0.1-2.el6 will be installed
--> Processing Dependency: R-java-devel = 3.0.1-2.el6 for package: R-devel-3.0.1-2.el6.x86_64
--> Processing Dependency: R-core-devel = 3.0.1-2.el6 for package: R-devel-3.0.1-2.el6.x86_64
--> Running transaction check
---> Package R-core-devel.x86_64 0:3.0.1-2.el6 will be installed
---> Package R-java-devel.x86_64 0:3.0.1-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch            Version              Repository     Size
================================================================================
Installing:
 R                     x86_64          3.0.1-2.el6          epel           19 k
Installing for dependencies:
 R-core-devel          x86_64          3.0.1-2.el6          epel           90 k
 R-devel               x86_64          3.0.1-2.el6          epel           19 k
 R-java-devel          x86_64          3.0.1-2.el6          epel           19 k

Transaction Summary
================================================================================
Install       4 Package(s)

Total download size: 147 k
Installed size: 326 k
Is this ok [y/N]: 

答案 2 :(得分:2)

在6.6 RHEL 64位计算机上安装R

经过很多页面后,我发现了这个步骤,所以想尽快分享一下:

wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

"它是RHEL机器首选的包装。"

sudo yum install tcl

“Tcl软件包包含工具命令语言,这是一种强大的通用脚本语言。已知此包使用LFS-7.7平台构建和正常工作。已知这个包使用gcc-5编译器构建和正常工作。“

sudo yum clean all

“清除yum缓存”

sudo yum install R

“用于安装R”

答案 3 :(得分:1)

试试这个

rpm -ivh http://mirror.unl.edu/epel/6/x86_64/epel-release-6-7.noarch.rpm

第二个是:

#yum install R

谢谢&问候,
阿洛克

答案 4 :(得分:1)

尝试sudo yum groupinstall“开发工具”

这将安装包含所有编译器的开发工具。 我也试图安装相同的。从源头尝试建设。现在尝试用yum构建。让我们看看它是怎么回事

答案 5 :(得分:0)

"我试过了..它说"包epel-release-6-8.noarch已经安装"。 "

但未启用...请参阅:https://bluehatrecord.wordpress.com/2014/10/13/installing-r-on-red-hat-enterprise-linux-6-5/

答案 6 :(得分:0)

我遇到了同样的问题,很多人似乎都陷入了困境。 依赖关系可在RedHat Repo [rhel-6-server-optional-rpms]中找到。启用repo和R应该安装。