我正在尝试在Amazon AWS AMI上安装R with Rstudio。它目前出货R-3.1,我希望它有R-3.2。我目前正在使用2013.03版本,但新的2015版本也没有正确的版本。
yum install R
命令不会升级它。
root@ip-172-31-3-136 tmp]$ sudo yum install R
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest
| 2.1 kB 00:00
amzn-updates/latest
| 2.3 kB 00:00
704 packages excluded due to repository priority protections
Package R-3.1.1-3.18.amzn1.x86_64 already installed and latest version
Nothing to do
我想我会添加另一个rpm repo,所以我从最新的CentOS下载rpm列表。
wget http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
sudo yum localinstall epel-release-7-5.noarch.rpm
sudo yum install R
这也不起作用,并给出了一个错误列表,如:
Error: Package: python26-2.6.9-1.80.amzn1.x86_64 (@amzn-updates)
Requires: libdb-4.7.so()(64bit)
Removing: db4-4.7.25-17.10.amzn1.x86_64 (installed)
libdb-4.7.so()(64bit)
Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
~libdb-4.8.so()(64bit)
Updated By: db4-4.7.25-18.11.amzn1.x86_64 (amzn-main)
libdb-4.7.so()(64bit)
Error: libdb4 conflicts with filesystem-2.4.30-3.8.amzn1.x86_64
Error: Package: rpm-python26-4.11.2-2.64.amzn1.x86_64 (@amzn-updates)
Requires: libdb-4.7.so()(64bit)
Removing: db4-4.7.25-17.10.amzn1.x86_64 (installed)
libdb-4.7.so()(64bit)
Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
~libdb-4.8.so()(64bit)
Updated By: db4-4.7.25-18.11.amzn1.x86_64 (amzn-main)
libdb-4.7.so()(64bit)
Error: Package: httpd-2.2.29-1.5.amzn1.x86_64 (@amzn-main)
Requires: libdb-4.7.so()(64bit)
Removing: db4-4.7.25-17.10.amzn1.x86_64 (installed)
libdb-4.7.so()(64bit)
Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
~libdb-4.8.so()(64bit)
Updated By: db4-4.7.25-18.11.amzn1.x86_64 (amzn-main)
libdb-4.7.so()(64bit)
我正在尝试安装R作为配置脚本的一部分,因此我最好能够不必从源代码安装,因为这需要很长时间。
--enablerepo=epel
技巧也不起作用。
root@ip-172-31-3-136 tmp]$ sudo yum install R --enablerepo=epel
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
704 packages excluded due to repository priority protections
Package R-3.1.1-3.18.amzn1.x86_64 already installed and latest version
Nothing to do
这一切看起来都很混乱,因为当我在数字海洋上启动时,以下脚本可以在CENTOS 7机箱上运行:
[root@servy-server ~]# yum install -y epel-release
[root@servy-server ~]# yum update -y
[root@servy-server ~]# yum install -y R
[root@servy-server ~]# R
答案 0 :(得分:1)
最新的Amazon AWS AMI现在附带R版本3.2。