Linux 在 RHEL 6 上安装 R
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18747640/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Installing R on RHEL 6
提问by Rohit Pandey
my questions is similar to this one - Problems installing R on Linux CentOS 6.3
我的问题与此类似 - 在 Linux CentOS 6.3 上安装 R 的问题
I installed epel, but when I run yum install R, I get the two dependency problems -
我安装了 epel,但是当我运行 yum install R 时,我遇到了两个依赖问题 -
Error: Package: R-core-3.0.1-2.el6.x86_64 (epel) Requires: libjpeg.so.62(LIBJPEG_6.2)(64bit)
错误:包:R-core-3.0.1-2.el6.x86_64 (epel) 需要:libjpeg.so.62(LIBJPEG_6.2)(64bit)
Error: Package: R-core-devel-3.0.1-2.el6.x86_64 (epel) Requires: texinfo-tex
错误:包:R-core-devel-3.0.1-2.el6.x86_64 (epel) 需要:texinfo-tex
I tried installing texinfo-tex using the rpm file from - 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
我尝试使用来自 - http://rpm.pbone.net/index.php3/stat/4/idpl/15993086/dir/scientific_linux_6/com/texinfo-tex-4.13a-8.el6的rpm文件安装texinfo-tex .x86_64.rpm.html
However, this takes me into a long tree of missing dependencies. I downloaded and tried installing 5 different rpm files and each time there were some missing dependencies. Ans this was just one branch of this tree of dependencies. I figured, there has got to be a better way. Can some one help? This has been driving me nuts.
但是,这使我进入了一棵缺少依赖项的长树。我下载并尝试安装 5 个不同的 rpm 文件,每次都缺少一些依赖项。Ans 这只是依赖关系树的一个分支。我想,必须有更好的方法。有人可以帮忙吗?这让我发疯。
Edit: Another option I'm trying is building R from source. Not sure if this will work given the missing packages though. For now however, it says it can't find a fortran compiler ("No F77 compiler found"). I installed gcc, thinking that it would have one, but apparently not.
编辑:我正在尝试的另一个选择是从源代码构建 R。不确定这是否会在缺少软件包的情况下起作用。但是,目前它表示找不到 fortran 编译器(“未找到 F77 编译器”)。我安装了 gcc,以为它会有一个,但显然没有。
回答by linux_fanatic
Try this one
试试这个
rpm -ivh http://mirror.unl.edu/epel/6/x86_64/epel-release-6-7.noarch.rpm
The second is:
第二个是:
#yum install R
Thanks & Regards,
Alok
感谢和问候,
阿洛克
回答by relaxed137
I have the exact same problem and have spent about 3 hours attempting to find a yum repository out there for RHEL 6 that can solve this problem. So far, it appears that whoever added this dependency didn't actually try and install it once they added the dependency. These dependency mappings don't appear to exist anywhere in any repo that I can find.
我有完全相同的问题,并花了大约 3 个小时试图为 RHEL 6 找到一个可以解决这个问题的 yum 存储库。到目前为止,似乎添加此依赖项的人在添加依赖项后实际上并未尝试安装它。这些依赖映射似乎不存在于我能找到的任何 repo 中的任何地方。
…
…
So I got frustrated and tried this command
所以我很沮丧并尝试了这个命令
yum install texinfo-tex-4.13a-8.el6.x86_64.rpm
yum 安装 texinfo-tex-4.13a-8.el6.x86_64.rpm
and it worked
它起作用了
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]:
回答by Marten Vijn
on RHEL6.4 do
在 RHEL6.4 上做
subscription-manager repos --enable rhel-6-server-optional-rpms
订阅管理器存储库 --enable rhel-6-server-optional-rpms
yum install texinfo-tex
yum 安装 texinfo-tex
rpm -ivh http://mirror.unl.edu/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh http://mirror.unl.edu/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install R
yum 安装 R
cheers Marten
欢呼马丁
回答by user1496110
Try sudo yum groupinstall “Development Tools”
试试 sudo yum groupinstall “开发工具”
This installs development tools which includes all compilers. I am also trying to install the same. Tried building from source. Now trying to build with yum. Let's see how it goes
这将安装包括所有编译器的开发工具。我也在尝试安装相同的。尝试从源头构建。现在尝试用 yum 构建。让我们看看它是怎么回事
回答by Rune Skou Larsen
"I tried this.. it said "package epel-release-6-8.noarch is already installed". "
“我试过了……它说‘epel-release-6-8.noarch 包已经安装’。”
But not enabled... See: 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/
回答by Ashiwn Gupta
Installing R on 6.6 RHEL 64 bit machine
在 6.6 RHEL 64 位机器上安装 R
After going through many pages i found this steps, so thought to share as a quick steps:
在浏览了很多页面后,我找到了这个步骤,所以想分享一个快速步骤:
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
"It's a package which is preferred for RHEL machine."
“这是 RHEL 机器首选的软件包。”
sudo yum install tcl
须藤 yum 安装 tcl
“The Tcl package contains the Tool Command Language, a robust general-purpose scripting language. This package is known to build and work properly using an LFS-7.7 platform. This package is known to build and work properly using the gcc-5 compiler.”
“Tcl 包包含工具命令语言,这是一种强大的通用脚本语言。众所周知,这个包可以使用 LFS-7.7 平台构建和正常工作。众所周知,这个包可以使用 gcc-5 编译器构建和正常工作。”
sudo yum clean all
须藤百胜清洁所有
“Cleans the yum cache”
“清理 yum 缓存”
sudo yum install R
须藤 yum 安装 R
“For installing R”
“用于安装 R”
回答by rlgjr
I was having the same issue, And many seem to be getting stuck on this. The dependencies are available in the RedHat Repo [rhel-6-server-optional-rpms]. Enable the repo and R should install.
我遇到了同样的问题,而且很多人似乎都陷入了这个问题。依赖项在 RedHat Repo [rhel-6-server-optional-rpms] 中可用。启用 repo 并安装 R。