Dashboard > DHIS Documentation > ... > Development environment and tools > Development environment and tools on Mac
  DHIS Documentation Log In | Sign Up   View a printable version of the current page.  
  Development environment and tools on Mac
Added by margrsto, last edited by Anders Gjendem on Dec 07, 2007  (view change)
Labels: 
(None)

Development environment and tools on Mac

Supplied software

If you're running Leopard (10.5), it seems Maven, Java and Subversion are already installed/will be installed if you have XCode/developers tools, thus there's no need to run through most of the steps on this page anymore unless you want to upgrade to newer versions.

Step 1 - Download and install the tools

You have to download, install and configure these tools:

Step 2 - Environmental Variables Setup

  • Create or modify the file /Users/<username>/.bash_login to contain the following:

SubVersion:

If you compiled SubVersion from source it puts its binaries in /usr/local/bin/. It's okey to add that one and sbin too to Path. If you don't specify -m/--message when you try to commit it will look for an editor in the SVN_EDITOR variable. Set it to your favorite editor, e.g. nano.

export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
export SVN_EDITOR="nano"

Maven:

Either add this for Maven into the same file, or merge the two commands into one:

export PATH="/usr/local/maven-2.0.4/bin:$PATH"

Maven also needs the JAVA_HOME variable, add it to the same place:

export JAVA_HOME="/usr"

to tie it too whatever is your Macs newest Java version, or be more specific if needed. Maven adds /bin/java to whatever you put there, pointing to /usr/bin/java which is a symlink to the real thing.

Apply the changes for the current terminal:

Test the changes by executing

. ~/.bash_login

in your terminal to apply the changes and then run:

Test the changes

echo $PATH
echo $JAVA_HOME
echo $SVN_EDITOR

You should then see that the output contains the mentioned paths and that running

svn --version
java -version
javac -version
mvn --version

works flawlessly.

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.6 Build:#812 Aug 06, 2007) - Bug/feature request - Contact Administrators