Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems installing R on Linux CentOS 6.2

Tags:

linux

r

centos

When installing R on Linux CentOS 6.2 I get the following:

Error: Package: R-core-2.10.0-2.el5.x86_64 (/R-core-2.10.0-2.el5.x86_64)
           Requires: libtk8.4.so()(64bit)
Error: Package: R-core-2.10.0-2.el5.x86_64 (/R-core-2.10.0-2.el5.x86_64)
           Requires: libtcl8.4.so()(64bit)

There are several helps out there for this type of error when using CentOS 4 or 5, but not for 6.2. Has anyone found a solution with this OS version? Thanks!

like image 261
cayg Avatar asked Feb 27 '12 16:02

cayg


3 Answers

I'd honestly recommend installing epel:

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

and then just doing

yum install R
like image 135
Bill Lynch Avatar answered Nov 10 '22 18:11

Bill Lynch


The above did not work for me. I had to install tcl.

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo yum install tcl
sudo yum clean all
sudo yum install R
like image 38
mgriebe Avatar answered Nov 10 '22 18:11

mgriebe


Now it is even easier:

yum install epel-release
yum install R
like image 7
mark Avatar answered Nov 10 '22 19:11

mark