Versions Compared

Key

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

...

Installation Steps

Table of Contents

Install Brew

Brew is a package installer/manager for OSX. Its great as it allows you to properly install a number of programs (i.e. dependencies) from the command line.

Install brew, and follow instructions from http://brew.sh

brew doctor
brew update
 

Install Java 7 JDK

Download and Install Java 7 JDK, this step should be done before installing tomcat, and IntelliJ: http://www.oracle.com/technetwork/java/javase/downloads/index.html

...

export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)


Install Git, Maven, Ant, Tomcat

brew install git maven ant tomcat tomcat-native


Install Postgres.App

Install postgres.app from: http://postgresapp.com/

...

“\q” gets you out of PSQL.


Configure Tomcat

Tell tomcat that tomcat-native is installed.

...

From here, you should have a ready to go system. You can always check the official installation documentation too: Installing DSpace. It would be best to keep this Install on OSX guide up-to-date, so if you run into issues, please leave a comment.

PRO-Tips:

Mail Catcher to trap and view emails locally

For development, send all emails to “mailcatcher”, a dummy email account, that runs on localhost, so that real emails don’t get sent out to real people.

...

Once configured, you can view your “inbox”, for outgoing messages from DSpace in your browser at http://localhost:1080


IntelliJ IDEA for a great coding environment

If you plan on doing significant Java programming, then it is recommended to use IntelliJ. The Ultimate version is best suited for this work, either start the trial, or use/buy a license. DSpace Committers have access to an “Open Source Project License”, hooray JetBrains! IntelliJ gives you code-completion i.e. Conf -> ConfigurationManager, and detects syntax errors before you spend time compiling. There are other alternatives, such as Eclipse and NetBeans, but many DSpace developers stick with IntelliJ IDEA.


Sublime Text for a great light-weight config editing environment

If I have to quickly view some config files, its preferable to open that with Sublime. Sublime Text 3 is their latest-and-greatest version.

...

Or to open a directory of config files, you can pass it the directory:

subl /dspace/config

pgAdmin3 for better PostgreSQL query environment

I would recommend pgadmin3, for a better query-environment than PSQL. Google, download, install it.

...

Note: A classically trained database admin may cringe when they see you use the Graphical Query Builder to make joins, but its only because they have too much time on their hands.


respace.sh - Single-Step Redeploy Script

If you are doing development, and find yourself having to make changes to .java files, then cd to your DSpace-source directory, then maven, then cd dspace/target/..., then ant, then stop/start tomcat, and you find that tedious, why not automate that process?

...