User Tools

Site Tools


en:developer:mac_source_install
This version is outdated by a newer approved version.DiffThis version (2014/04/13 23:52) is a draft.
Approvals: 0/1

This is an old revision of the document!


Source Installation for Mac

<TABAREA tabs="Greenstone3,Greenstone2"> <TAB>

requirements

Java 1.4 or greater (tick) Set the environment variable JAVA_HOME

 
 sp:~/greenstone3 spdegabrielle$ sudo emacs /etc/profile

My current /etc/profile

 #For Tomcat
 export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
 export CATALINA_HOME=/usr/local/tomcat
 export JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8"
</cdoe>
Ant 1.6.2 or later 
  * install XCode tools from the apple developer site
<code>
 ant -version
 Apache Ant version 1.6.5 compiled on September 12 2006

GDBM…

http://www.gnu.org/software/gdbm/gdbm.html follow the instructions at http://greenstone.sourceforge.net/wiki/index.php/Compiling_Greenstone#Darwin.2FMac_OS_X you will also need to add the path to the gdbm.installed.path property (in build.properties)

Install Procedure

svn co http://svn.greenstone.org/greenstone3/trunk greenstone3

{wait for it…}

 cd greenstone3/
 ant prepare

{read then agree to default build settings y}

hopefully:

 BUILD SUCCESSFUL
 Total time: 6 minutes 6 seconds

see if this works…

 ant install

</TAB> <TAB>

ImageMagick on X

The quickest way to get ImageMagick running on OS X for Greenstone.

  1. open .dmg
  2. install package
  3. open term
  4. type sudo bash
  5. edit /etc/profile to include /usr/local/bin in the path (you will have to use and editor in term - try vi or emacs) so it looks something like this PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
  6. save and exit
  7. Restart the GLI in a new term window.

No more 'imagemagick not installed' complaints!

Happy image collection building.

Stephen

PS your /etc/profile should have these two lines:

PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"

export PATH

</TAB> </TABAREA>

en/developer/mac_source_install.1397433133.txt.gz · Last modified: 2017/06/28 04:14 (external edit)