Installing on RedHat Enterprise 4

From EPrints Documentation
Revision as of 11:00, 22 June 2007 by KfjOy2 (Talk | contribs)

Jump to: navigation, search

Here is my step by step guide to getting EPrints 2.3.10 to install on a brand new Red Hat Enterprise Linux 4 install.

There may be some more issues that arrise, if you have a workaround, please add it. If it's just a bug, please leave a comment at the end of this page so I can try and resolve it.

Install Linux and Prerequisites

Install Red Hat Enterprise Linux 4, the latest Update [=ISOs=] are available through Red Hat Network. If RHN is working, use it to get all the required packages:

up2date -u httpd wget gunzip xpdf lynx unzip
up2date -u mod_perl perl-DBI perl-DBD-MySQL perl-XML-Parser

Note: you will need to make sure your machine has the "Extras" channel in RHN or install mysql-server from the 'extras' disk, even if you selected to install MySQL in the menus:

up2date mysql-server

If you want the LaTeX functionality install a TeX system and ImageMagick:

up2date tetex-latex ImageMagick

Other perl modules

EPrints requires several perl modules not available through RHN. One place to get them is from Dag Wieers' high-quality repository, see http://dag.wieers.com/home-made/apt/FAQ.php#B. Install other perl modules like this:

rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
cat >> /etc/sysconfig/rhn/sources <<EOF
yum dag-rhel-4 http://apt.sw.be/redhat/el4/en/i386/dag/
EOF
up2date -u perl-Data-ShowTable perl-MIME-Base64 perl-Unicode-String
# turn off Dag's repo when not using 
sed -i 's;yum dag;#yum dag;g' /etc/sysconfig/rhn/sources

Alternatively, you can use CPAN with the automated script which comes with eprints; run "cpan" and answer the questions.

cpan

then exit cpan (type exit) and run the perlmodule installer which came with EPrints.

Make sure apache