Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

With this introduction to the necessary tools, the following sections will cover installation of these software packages / plug-ins for your system. As a side note and comment on file system hierarchy philosophy, I'll be using installation locations that (in my interpretation) best reflect the most current Filesystem Hierarchy Standard (specifically, installing most programs under the /usr/local directory).

Database Software

DSpace requires either PostgreSQL 8.4 (or greater) or Oracle 10g (or greater) relational database software. Depending on your setup you may want your databases either local or some remote server. I've found it beneficial to have both available.

...

On Mac OS 10.6, you can configure a postgres startup script via the following plist file (this assumes that all your paths are the same as those in the instructions provided above, otherwise changes would be necessary)

The location of the file:#

Code Block

/Library/LaunchDaemons/org.postgresql.PostgreSQL.plist

The file contents:

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>Label</key><string>org.postgresql.PostgreSQL</string>
    <key>ServiceDescription</key><string>PostgreSQL Database Server</string>
    <key>Disabled</key><false/>
    <key>Username</key><string>postgres</string>
    <key>Groupname</key><string>postgres</string>
    <key>Program</key><string>/usr/local/pgsql/bin/pg_ctl</string>
    <key>ProgramArguments</key>
    <array>
      <string>-D</string>
      <string>/usr/local/pgsql/data</string>
      <string>-l</string>
      <string>/usr/local/pgsql/data/server.log</string>
      <string>start</string>
    </array>
    <key>KeepAlive</key><false/>
    <key>RunAtLoad</key><true/>
  </dict>
</plist>

...

Apache Tomcat's latest stable release is 7.0.8 and can be acquired from the download page at Tomcat's official site. Both binary and source distributions are available. Generally, a binary version is sufficient for setting up a development environment. There are several different packages available for Tomcat:

  • Core - This is the "meat" of the program. The one you'll need to download for getting a base distribution of Tomcat up and running.
  • Documentation - This is the full body of Tomcat documentation available for keeping a local copy. It is the same documentation as that which is available from the website.
  • Deployer - This package contains the Tomcat Client Deployer which is largely a build tool for Tomcat specific tasks. Not necessary for a development environment.
  • Extras - These are other Tomcat related packages, none of which are necessary for setting up the development environment.
  • Embedded - This package is used for embedding Tomcat in your own web application; Not necessary for the development environment.

The only package that is required for our installation is that of the "Core" Tomcat application, though having a local copy of the documentation could be useful, especially if you'll be running on a mobile machine.

To setup Tomcat for use with your development environment (on Mac OS 10.6), download the apache-tomcat-7.0.8.tar.gz file to your filesystem and perform the following commands:

Code Block

$ cd /Users/{user}/Downloads
$ tar -xvf apache-tomcat-7.0.8.tar.gz
$ sudo mv apache-tomcat-7.0.8 /usr/local
$ cd /usr/local
$ sudo ln -s apache-tomcat-7.

...

0.8 tomcat

Other Servlet Container Software

...