Installing R in Red Hat Enterprise Linux Server release 7.1 (Maipo) - r

I am trying to install R on RHEL 7 but i get the following error.
Error: Package: R-core-devel-3.2.3-4.el7.x86_64 (epel)
Requires: blas-devel >= 3.0
Error: Package: R-core-devel-3.2.3-4.el7.x86_64 (epel)
Requires: lapack-devel
Error: Package: R-core-devel-3.2.3-4.el7.x86_64 (epel)
Requires: texinfo-tex
I installed epel-release-7-8.noarch. I also tried to group install Development tools as below.
yum group install "Development tools"
Tried to enable repos
yum-config-manager --enable epel
I tried several suggestions posted in internet. but nothing seems to work or solve my issue. Can somebody help me install R? It should be a simple three steps process but now it became a nightmare for me to complete it. Please find below system details.
Red Hat Enterprise Linux Server release 7.1 (Maipo)
Many thanks!

You should just install couple of dependencies.
$ sudo dnf -y install blas-devel lapack-devel texinfo-tex

Related

Issues with installing R on Centos 7

I'm trying to install R on my CentOS 7 by...
yum install epel-release
yum install R
but i keep seeing this error at end of installing R
....
Error: Package: R-core-3.2.3-1.el6.x86_64 (epel)
Requires: libicuuc.so.42()(64bit)
Error: Package: R-core-3.2.3-1.el6.x86_64 (epel)
Requires: libicui18n.so.42()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I can't figure out what this error means...
What can i do for solving this problem?
or am i missing something with my procedure?
Download the lib64icu42-4.2.1-1mdv2010.0.x86_64.rpm from the below link:
ftp://fr2.rpmfind.net/linux/Mandriva/official/2010.0/x86_64/media/main/release/lib64icu42-4.2.1-1mdv2010.0.x86_64.rpm
Install the RPM:
sudo rpm -ivh lib64icu42-4.2.1-1mdv2010.0.x86_64.rpm
This could help solving the error. Thanks!
rpm link:
https://www.rpmfind.net/linux/rpm2html/search.php?query=libicuuc.so.42()(64bit)

R 3.2 on AWS AMI

I am trying to install R with Rstudio on an Amazon AWS AMI. It currently ships R-3.1 and I would like it to have R-3.2. I am currently using 2013.03 release but the new 2015 version also doesn't have the right version.
The yum install R command won't upgrade it.
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
I figured I'd add another rpm repo, so I download the rpm list from the most recent CentOS.
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
This also doesn't work and gives me a list of errors like:
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)
I am trying to install R as part of a provisioning script so preferably I would be able to to not have to install from source as this takes a LONG time.
The --enablerepo=epel trick also does not work either.
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
This all seems very confusing as the following script does work on a CENTOS 7 box when I start it on digital ocean:
[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
The latest Amazon AWS AMI now ships with R version 3.2.

Install R on RedHat errors on dependencies that don't exist

I have installed R before on a machine running RedHat EL6.5, but I recently had a problem installing new packages (i.e. install.packages()). Since I couldn't find a solution to this, I tried reinstalling R using:
sudo yum remove R
and
sudo yum install R
But now I get:
....
---> 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
I already checked, and blas-devel is installed, but the newest version is 0.2.8. Checked using:
yum info openblas-devel.x86_64
Any thoughts as to what is going wrong? Thanks.
Do the following:
vim /etc/yum.repos.d/redhat.repo
Change enabled = 0 in [rhel-6-server-optional-rpms] section of the file to enabled=1
yum install R
DONE!
I think I should give reference to the site of solution:
https://bluehatrecord.wordpress.com/2014/10/13/installing-r-on-red-hat-enterprise-linux-6-5/
I had the same issue. Not sure why these packages are missing from RHEL's repos, but they are in CentOS 6.5, so the follow solution works, if you want to keep things in the package paradigm:
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/lapack-devel-3.2.1-4.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/blas-devel-3.2.1-4.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/texinfo-tex-4.13a-8.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/libicu-devel-4.2.1-9.1.el6_2.x86_64.rpm
sudo yum localinstall *.rpm
cheers
UPDATE: Leon's answer is better -- see below.
The best solution I could come up with was to install from source. This worked and was not too bad. However, now it isn't in my package manager.

Problems installing R on Linux CentOS 6.3

When installing R on Linux CentOS 6.3 I get the following:
Error: Package: R-core-3.0.1-2.el6.x86_64 (epel)
Requires: libjpeg.so.62(LIBJPEG_6.2)(64bit)
Error: Package: glibc-headers-2.12-1.80.el6_3.7.x86_64 (updates)
Requires: kernel-headers
Error: Package: glibc-headers-2.12-1.80.el6_3.7.x86_64 (updates)
Requires: kernel-headers >= 2.2.1
This is after I install the epel 6 via:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
then trying:
yum install R
Hi You can install the missing packages by downloading rpm and install using rpm command
libjpeg.so.62 and kernel-headers
To install .rpm package use the following steps
rpm -iv package.rpm
Try
yum install R
After that. :)
If this is a Windows Azure CentOS 6.3 instance, you may have to run:
sudo yum --disableexcludes=main install kernel-headers-2.6.32-279.14.1.el6.openlogic.x86_64
See:
Openlogic Centos 6.3 image: no kernel-headers
Azure VM (OpenLogic CentOS 6.3): no kernel-headers

Installing R in cloudera's hadoop VM

Using cloudera's distro of hadoop for virtualbox, I first updated the epel:
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86/epel-release-5-4.noarch.rpm
Which goes through just fine. But when I try
sudo yum install R
I get this:
Error: Package: R-core-2.15.2-1.e15.x86_64 (epel)
requires: libtcl8.4.so()(64bit)
Error: Package: R-core-2.15.2-1.e15.x86_64 (epel)
requires: libtk8.4.so() (64bit)
And the installation just quits. Is there any recommended steps from here? I get the same errors when trying to open the files from cran as well.
edit: I finally figured out the issue. Since I'm new to this kind of thing, I didn't realize the epel-release... file was out of date. If you're blindly following some guide like me and they haven't updated the epel release, you can check by going to http://dl.fedoraproject.org/pub/epel/6/x86_64/ and searching for epel-release. The most current version should be there.
By doing:
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://download2.rstudio.org/rstudio-server-0.97.336-x86_64.rpm
sudo yum install --nogpgcheck rstudio-server-0.97.336-x86_64.rpm
That fixed the issue.

Resources