This is a step-by-step how-to guide to install DSpace 4.2 on Redhat Enterprise v6.5.

Install Prerequisites

Install Java

#To check if java is installed:
 
	java -version
 
#If you're running 1.6 or higher, this guide should be fine. If You don't have java:
 
	yum install java-1.6.0-openjdk* 

Install Tomcat 7

cd /tmp
wget http://www.us.apache.org/dist/tomcat/tomcat-7/v7.0.56/bin/apache-tomcat-7.0.56.tar.gz
tar xzf apache-tomcat-7.0.56.tar.gz
mv apache-tomcat-7.0.56 /usr/local/tomcat7

Install PostgreSQL

yum install postgresql-server.x86_64

Install XML Commons API

yum install xml-commons-api

Install Ant

yum install ant ant-apache-regexp