Pages

2016-02-03

R on RHEL 7 in AWS

Tux, the Linux penguin

R on RHEL 7 in AWS


If I have start to run some software, and it ends up being less than straightforward, I always try to make a checklist of the procedure for how to build it. 

Recently I was testing the performance of some R code. 


I launched an AWS server Red Hat Linux 7 (RHEL 7) and found R was not installed. 

Ok, so this is a simple yum install, right? 

Not so fast. 

Here is everything I needed to do, in order to get R and rstudio running on my server: 

sudo su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm'
sudo yum update
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/lapack-devel-3.4.2-5.el7.x86_64.rpm
sudo yum locallinstall lapack-devel-3.4.2-5.el7.x86_64.rpm
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/blas-devel-3.2.2-5.el7.x86_64.rpm
sudo yum locallinstall blas-devel-3.2.2-5.el7.x86_64.rpm
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/texlive-epsf-svn21461.2.7.4-38.el7.noarch.rpm
sudo yum locallinstall texlive-epsf-svn21461.2.7.4-38.el7.noarch.rpm
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/texinfo-tex-5.1-4.el7.x86_64.rpm
sudo yum locallinstall texinfo-tex-5.1-4.el7.x86_64.rpm
sudo yum install R

wget https://download2.rstudio.org/rstudio-server-rhel-0.99.491-x86_64.rpm
yum localinstall --nogpgcheck rstudio-server-rhel-0.99.491-x86_64.rpm
service rstudio-server
service rstudio-server status

All of this came about from google searches on stackoverflow, and other places where I found hiccup after hiccup just getting everything installed. 

These commands will save you some time. 


3 comments:

  1. Thanks really helpfull

    ReplyDelete
  2. small update(s):
    typo in locallinstall (l in local(l)
    higher version go blas package:
    http://mirror.centos.org/centos/7/os/x86_64/Packages/blas-devel-3.4.2-5.el7.x86_64.rpm

    But thank you very much Doug.. was only working on this for an hour or so but already quite in the woods !. This sequence installed like a breeze

    ReplyDelete
  3. Thanks very much Doug, probably saved me quite some time..

    ReplyDelete