Installing R on RHEL 7

14

1

I'm trying to install R on RHEL 7. I'm using epel-release-7-2.noarch.rpm and resolved many dependencies (one by one by manual .rpm installation) but at the end of the dependency resolution I got these errors:

--> Finished Dependency Resolution Error: Package: R-core-3.1.1-7.el7.x86_64 (epel) Requires: tex(dvips) Error: Package: R-core-devel-3.1.1-7.el7.x86_64 (epel) Requires: texinfo-tex Error: Package: R-java-devel-3.1.1-7.el7.x86_64 (epel) Requires: java-devel Error: Package: R-core-3.1.1-7.el7.x86_64 (epel) Requires: tex(latex) Error: Package: R-core-devel-3.1.1-7.el7.x86_64 (epel) Requires: tex(latex) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

I'm using a system not registered to Red Hat Subscription Management, so I can't use subscription-manager to register it and resolving dependencies.

Where can I find tex(dvips) and tex(latex)? I'm trying to download it from mirror.centos.org/centos/7/os/x86_64/Packages/ but I still haven't found the correct files

Update: Finally I've resolved myself the problem updating the RHEL repo: cd /etc/yum.repos.d/ vi CentOS-base.repo [base] name=CentOS-$releasever – Base baseurl=http://buildlogs.centos.org/centos/7/os/x86_64-20140704-1/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 priority=1 exclude=php mysql

And after that: yum update yum install texlive yum install R

...and a clean installation done! :)

MSS

Posted 2014-11-17T13:53:22.960

Reputation: 139

1if you solved the problem is valid to post your own answer and mark it as the right one – Francisco Tapia – 2015-07-10T11:10:53.590

Do you know how can I check what's the newest available version of R for RHEL 7? – Marcin Kosiński – 2015-09-16T14:44:28.563

Answers

11

I think installing R on CentOS 7 is simplest this way:

sudo yum install -y epel-release 
sudo yum update -y 
sudo yum install -y R

Tom B

Posted 2014-11-17T13:53:22.960

Reputation: 111

I think the premise of the question was that the OP was having dependency problems even though he was using epel-release. – Peter Ellis – 2018-05-10T22:13:43.597

8

If you do not wish to install the CentOS repos, you can hand pick the individual packages that are required:

OS RHEL 7

 [ec2-user ~]$ cat /etc/redhat-release
 Red Hat Enterprise Linux Server release 7.3 (Maipo)

IMPORTANT: Verify that EPEL repo was installed and configured as expected. However, when installing R, there are still dependency problems:

[ec2-user ~]$ sudo yum install R
… output truncated …
--> Finished Dependency Resolution
Error: Package: R-core-devel-3.3.1-2.el7.x86_64 (epel)
       Requires: texinfo-tex

There is no package for this in the Redhat or EPEL repositories. I grabbed one from CentOS7 repo.

[ec2-user ~]$ wget http://mirror.centos.org/centos/7/os/x86_64/Packages/texinfo-tex-5.1-4.el7.x86_64.rpm

And tried to install that but got another dependency problem…

[ec2-user ~]$ sudo yum localinstall texinfo-tex-5.1-4.el7.x86_64.rpm
… output truncated …
--> Finished Dependency Resolution
Error: Package: texinfo-tex-5.1-4.el7.x86_64 (/texinfo-tex-5.1-4.el7.x86_64)
       Requires: tex(epsf.tex)

Again, nothing in EPEL or RedHat, so I grabbed another couple of CentOS7 packages:

[ec2-user ~]$ wget http://mirror.centos.org/centos/7/os/x86_64/Packages/texlive-epsf-doc-svn21461.2.7.4-38.el7.noarch.rpm
[ec2-user ~]$ wget http://mirror.centos.org/centos/7/os/x86_64/Packages/texlive-epsf-svn21461.2.7.4-38.el7.noarch.rpm

So now I install the downloaded local packages

[ec2-user ~]$ sudo yum localinstall texlive-epsf-doc-svn21461.2.7.4-38.el7.noarch.rpm
[ec2-user ~]$ sudo yum localinstall texlive-epsf-svn21461.2.7.4-38.el7.noarch.rpm
[ec2-user ~]$ sudo yum localinstall texinfo-tex-5.1-4.el7.x86_64.rpm

And finally…

[ec2-user ~]$ sudo yum install R
…output truncated…
Complete!

HTH

Dylan Fowler

Posted 2014-11-17T13:53:22.960

Reputation: 81

Tried multiple different options, and this was the ONLY one that actually worked for us with Redhat. – Dave Gruenewald – 2017-01-20T20:29:43.217

Worked like a charm. Excellent. – Mian Asbat Ahmad – 2017-08-11T09:02:38.537

Links are now broken; check http://mirror.centos.org/centos/7/os/x86_64/Packages/ for latest

– Brad Solomon – 2020-02-03T22:15:17.603

4

BTW: to the ones who have a subscription and want to stay on the RHEL repositories therefore, will find the missing packages in "rhel-7-server-optional-rpms".

So yum --enablerepo=epel --enablerepo="rhel-7-server-optional-rpms" install R worked for me.

You might have to do a subscription-manager repos --enable rhel-7-server-optional-rpms.

Markus

Posted 2014-11-17T13:53:22.960

Reputation: 41

3

For those looking for a straight answer, R belongs to RHEL Extra Packages for Enterprise Linux (EPEL), therefore:

su -c 'rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm'

sudo yum update

sudo yum install R

josemrivera

Posted 2014-11-17T13:53:22.960

Reputation: 31

-1

If you are installing on Redhat, you just need to local install 'textinfo-tex' and 'textlive-epsf-svn' from CentOS repo, and then install R from epel replease repo.

user1854266

Posted 2014-11-17T13:53:22.960

Reputation: 1