Sunday, September 20, 2015

Install Greenstone Digital Library Software on a Apple Mac running 10.10

Version 10.10 of OSX breaks some things, this post details how to install Greenstone.

1.      Download Greenstone-2.86-MacOS-intel-Leopards.dmg from greenstone.org
(Do not get the LION version, it does not work. It used to be there were two versions, one was dynamic and the other static and the dynamic version was supposed to work on the more recent versions of OSX. Somewhere apple updates to OSX broke that and now the older version works better)
2.      For OSX 10.7 and higher, select System Preferences, click the lock and enter your password and select the Anywhere radio button under the Allow Apps Downloaded From Anywhere option
3.      Double-click the downloaded greenstone.dmg file to mount the disk image
4.      Double-click the greentstone2.86.app to install
5.      Accept all the default settings by clicking NEXT
It installs to /Users/yourusername/greenstone where yourusername is your user name
(IF it puts in usr/local/ edit the text box to be /Users/yourusername/greenstone) It is unknown why this sometimes occurs, there seems to be no constant for this behavior.

6.      When the install is finished click Go, Home and your user folder is displayed

7.      Click on the Greenstone folder and Double-Click the gli.app icon to run the Librarian Interface and you should see this error:

What this means is that the GLI relies on the ImageMagick library to process images but that it cannot seen to locate it or that the version it installed is not working. We don't know what causes this but we do have a workaround.

Replace ImageMagick

Navigate to Users/yourusername/Greenstone/bin/darwin and drag the imagemagick folder to the trash. This removes the version installed with Greenstone.


Download Imagemagick from http://cactuslab.com/imagemagick/by selecting the first download option:



Once the file is downloaded double-click the ImageMagick installer pkg file  and install ImageMagick. Do not change the defaults and it will install to /opt

Edit Greenstone Prefs

Navigate to the Greenstone/gli folder
Right-click on gli.sh and choose Open With TextEdit
Insert this text on line 108 (after fi and before # --- check that the GLI has been compiled ----)

export MAGICK_HOME="/opt/ImageMagick"

Then save the file. 


The GLI will now run and process image files. You can tick the checkbox to turn off the imagemagick warning message when the gli loads.

TESTED on OSX 10.10.3 and 10.10.5


No comments: