Please refer to the below steps to install R and Mahout on Cent OS:
Update yum and install wget:
sudo yum update
sudo yum install wget
Installing R:
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo yum -y install git wget R
To check R is installed correctly, give
R
You will find the below image
To install Mahout:
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
sudo yum install apache-maven
tar -xvf mahout-distribution-0.8-src.tar.gz
mv mahout-distribution-0.8.pom /path/to/mahout-distribution-0.8/
cd /path/to/mahout-distribution-0.8
mvn -DskipTests
bin/mahout
You will find the below screen once Mahout is successfully installed.
Please feel free to revert if you need any further help