Installing Eprints on CentOS 5 using source files

Websites used during install

Steps we carries out, to complete the install

  1. yum install httpd
  2. yum install wget
  3. yum install lynx
  4. yum install mod_perl
  5. yum install perl-DBI
  6. yum install perl-DBD-MySQL
  7. The following required packages were already standard on CentOS 5: gzip, unzip, perl-XML-Parser
  8. xpdf is also required by Eprints installation instructions, xpdf is apparently not included in CentOS 5. It is suggested on to use poppler and poppler utils instead of xpdf. These packages were installed using yum install poppler poppler-utils (we will see how Eprints handles PDF functions without xpdf) If a problem exists we can install xpdf from source or rpm to the Centos 5 installation
  9. yum install mysql-server
  10. yum install httpd
  11. yum install tetex-latex
  12. yum install ImageMagick
  13. yum install glib-devel
  14. yum install libxml2-devel.i386
  15. cpan

    perl -MCPAN -e shell

    install Data::ShowTable

    install MIME::Base64

    install Unicode::String

    install Term::ReadKey

    install Readonly ******NEW*******

    install MIME::Lite

    install XML::LibXML

    install CGI (This is an update as I found RHEL dist has a bug for something else)

  16. cd /root
  17. wget
  18. wget
  19. Attempted to excecute rpm -Uvh gdome2-0.8.1-1.i386.rpm gdome2-devel-0.8.1-1.i386.rpm system reported failed dependancy glib2-devel >= 2.2.0 is needed by gdome2-devel
  20. yum install glib2-devel.* (system installed glib2-devel.i386 0:
  21. rpm -Uvh gdome2-0.8.1-1.i386.rpm gdome2-devel-0.8.1-1.i386.rpm (installed ok)
  22. The following section is from the eprints wiki it outlines a bug that needs fixing
  23. Fix the bug in gdome-config
    To see if the bug is a problem run:
    gdome-config --libs
    If you get something like:
    /usr/bin/gdome-config: line 86: --libs: command not found
    /usr/bin/gdome-config: line 87: --cflags: command not found
    then you need to fix the bug. Don't worry, it's easy.
    As root edit /usr/bin/gdome-config
    vi /usr/bin/gdome-config
    Around line 88 find these two lines:
    the_libs="$the_libs -L${exec_prefix}/lib -lgdome ` --libs` `xml2-config --libs`"
    the_flags="$the_flags -I${prefix}/include -I${prefix}/include/libgdome ` --cflags` `xml2-config --cflags`"
    And change them to this:
    the_libs="$the_libs -L${exec_prefix}/lib -lgdome `/usr/bin/glib-config --libs` `xml2-config --libs`"
    the_flags="$the_flags -I${prefix}/include -I${prefix}/include/libgdome `/usr/bin/glib-config --cflags` `xml2-config --cflags`"
  24. mkdir /usr/local/build
  25. cd /usr/local/build
  26. wget
  27. tar xzvf XML-GDOME-0.86.tar.gz
  28. cd XML-GDOME-0.86
  29. perl Makefile.PL
  30. yum install gcc.i386 (compiler did not come standard with CentOS 5)
  31. make
  32. make install
  33. cd /usr/local/build
  34. wget
  35. tar xzvf eprints-3.0-rc-1.tar.gz
  36. cd eprints-3.0-rc-1
  37. ./configure –prefix=/var/lib/eprints3 –with-user=apache –with-group=apache
  38. ./
  39. vi /etc/httpd/conf/httpd.conf
  40. Add this line to the very end of the file Include /var/lib/eprints3/cfg/apache.conf
  41. cd /etc/selinux
  42. vi config
  43. make selinux=disabled
  44. /sbin/chkconfig mysqld on
  45. /sbin/chkconfig httpd on
  46. ln -s /var/lib/eprints3/bin/epindexer /etc/init.d/epindexer
  47. chkconfig –add epindexer
  48. chkconfig epindexer on
  49. reboot
  50. Go into mysql by running
  51. mysql -u root -p
  52. and entering password
  53. then in mysql
  54. run these two commands (with your choice of pwd)
  55. GRANT ALL PRIVILEGES ON *.* TO ‘mysql’@’localhost’ IDENTIFIED BY ‘password’ WITH GRANT OPTION;
  57. After you’ve done that, you’re ready to configure your first repostiory

5 thoughts on “Installing Eprints on CentOS 5 using source files

  1. Thanks for the help guide.
    I have some problem doing install “MIME::Lite” and “install CGI” cause ftp download stops with a message “connection timed out”.
    But at the end of the cpan modules installation, when I try to intall eprints rpm this is the result:

    warning: eprints3-eprints-3.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 26f6b838
    error: Failed dependencies:
    perl(Data::ShowTable) is needed by eprints3-eprints-3.noarch
    perl(HTML::Entities) is needed by eprints3-eprints-3.noarch
    perl(LWP::MediaTypes) is needed by eprints3-eprints-3.noarch
    perl(LWP::Simple) is needed by eprints3-eprints-3.noarch
    perl(LWP::UserAgent) is needed by eprints3-eprints-3.noarch
    perl(MIME::Lite) is needed by eprints3-eprints-3.noarch
    perl(URI) is needed by eprints3-eprints-3.noarch
    perl(URI::Escape) is needed by eprints3-eprints-3.noarch
    perl(URI::Heuristic) is needed by eprints3-eprints-3.noarch
    perl(Unicode::String) is needed by eprints3-eprints-3.noarch
    perl(XML::DOM) is needed by eprints3-eprints-3.noarch
    perl(XML::GDOME) is needed by eprints3-eprints-3.noarch
    perl(XML::LibXML) >= 1.62 is needed by eprints3-eprints-3.noarch
    perl(XML::LibXML) >= 1.63 is needed by eprints3-eprints-3.noarch
    perl(XML::LibXML::SAX::Parser) is needed by eprints3-eprints-3.noarch
    perl(XML::Parser) is needed by eprints3-eprints-3.noarch
    xpdf is needed by eprints3-eprints-3.noarch

    It seems like no modules were installed!
    Could you help me?

  2. Thank you – you saved me quite a bit of time there!

    Just one minor correction: on step 23,

    /usr/bin/glib-config –libs
    /usr/bin/glib-config –cflags

    should be

    /usr/bin/glib-config –-libs
    /usr/bin/glib-config –-cflags

  3. i am installing eprints3 on my windows operating system but feel problems in connecting the mysql to localhost.


    If anyone helps i wil be highly thankful

  4. Great help, thanks. A few nits:
    Line 43: this could be clearer, as per line 15 (I’d remove the line number and the word ‘make’)
    Line 47: I needed –add instead of -add
    Line 51: I had to use -u admin
    I also had to install XML::Parser, but then I’m installing eprints-3.1.1

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s