在 EC2 RHEL 7 上安装 R

Installing R on EC2 RHEL 7

有人在 AWS/EC2 RHEL 7.2 上运气好吗?

I 运行 sudo yum install -y epel-release 以访问 EPEL 包。 接下来我尝试了 sudo yum install R 但它失败了:

Error: Package: R-core-devel-3.3.1-1.el7.x86_64 (epel) Requires: texinfo-tex

我看到有人提到您需要允许可选包获得 texinfo-tex,但其中 none 似乎可以在 AWS 上运行。例如,我试过这个没有用:sudo yum --enablerepo=rhel-7-server-optional-rpms install R

如果我尝试:sudo yum --skip-broken install R 然后它失败并显示此消息:

Packages skipped because of dependency problems: GConf2-3.2.6-8.el7.x86_64 from rhui-REGION-rhel-server-releases R-3.3.1-1.el7.x86_64 from epel R-core-3.3.1-1.el7.x86_64 from epel R-core-devel-3.3.1-1.el7.x86_64 from epel R-devel-3.3.1-1.el7.x86_64 from epel R-java-devel-3.3.1-1.el7.x86_64 from epel bzip2-devel-1.0.6-13.el7.x86_64 from rhui-REGION-rhel-server-releases flac-libs-1.3.0-5.el7_1.x86_64 from rhui-REGION-rhel-server-releases gcc-gfortran-4.8.5-4.el7.x86_64 from rhui-REGION-rhel-server-releases gsm-1.0.13-11.el7.x86_64 from rhui-REGION-rhel-server-releases 1:java-1.7.0-openjdk-1.7.0.111-2.6.7.2.el7_2.x86_64 from rhui-REGION-rhel-server-releases 1:java-1.7.0-openjdk-devel-1.7.0.111-2.6.7.2.el7_2.x86_64 from rhui-REGION-rhel-server-releases 1:java-1.7.0-openjdk-headless-1.7.0.111-2.6.7.2.el7_2.x86_64 from rhui-REGION-rhel-server-releases libasyncns-0.8-7.el7.x86_64 from rhui-REGION-rhel-server-releases libicu-devel-50.1.2-15.el7.x86_64 from rhui-REGION-rhel-server-releases 2:libogg-1.3.0-7.el7.x86_64 from rhui-REGION-rhel-server-releases libquadmath-devel-4.8.5-4.el7.x86_64 from rhui-REGION-rhel-server-releases libsndfile-1.0.25-10.el7.x86_64 from rhui-REGION-rhel-server-releases 1:libvorbis-1.3.3-8.el7.x86_64 from rhui-REGION-rhel-server-releases pcre-devel-8.32-15.el7_2.1.x86_64 from rhui-REGION-rhel-server-releases pcsc-lite-libs-1.8.8-6.el7.x86_64 from rhui-REGION-rhel-server-releases psmisc-22.20-9.el7.x86_64 from rhui-REGION-rhel-server-releases pulseaudio-libs-6.0-7.el7.x86_64 from rhui-REGION-rhel-server-releases 1:tcl-devel-8.5.13-8.el7.x86_64 from rhui-REGION-rhel-server-releases 1:tk-devel-8.5.13-6.el7.x86_64 from rhui-REGION-rhel-server-releases tre-devel-0.8.0-10.el7.x86_64 from epel xz-devel-5.1.2-12alpha.el7.x86_64 from rhui-REGION-rhel-server-releases

一定很简单,但我想不通。

试试这个,我觉得它会解决你的一些问题:

yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

我可能有这种感觉,因为我们在聊天中一起想通了:)

显然有人 运行 在安装名为 Kaltura 的软件包时解决了这个问题:

https://thomas-barthelemy.github.io/2015/03/19/ec2-epel-rhel7/