Installing R on RHEL 6

Rohit Pandey picture Rohit Pandey · Sep 11, 2013 · Viewed 30.6k times · Source

my questions is similar to this one - Problems installing R on Linux CentOS 6.3

I installed epel, but when I run yum install R, I get the two dependency problems -

Error: Package: R-core-3.0.1-2.el6.x86_64 (epel) Requires: libjpeg.so.62(LIBJPEG_6.2)(64bit)

Error: Package: R-core-devel-3.0.1-2.el6.x86_64 (epel) Requires: 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

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.

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.

Answer

Marten Vijn picture Marten Vijn · Sep 23, 2013

on RHEL6.4 do

subscription-manager repos --enable rhel-6-server-optional-rpms

yum install texinfo-tex

rpm -ivh http://mirror.unl.edu/epel/6/x86_64/epel-release-6-8.noarch.rpm

yum install R

cheers Marten