Changeset 23661 for main/trunk


Ignore:
Timestamp:
2011-02-02T15:36:01+13:00 (13 years ago)
Author:
ak19
Message:

GSIControl.sh also needs to set (DY)LD_LIBRARY_PATH so that the Mac can find the libiconv(2).dylib that apache needs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/gsicontrol.sh

    r23252 r23661  
    33testdone=0
    44
     5# Setup.bash needs to be sourced
     6# On MAC, need to tell apache to find and use its own libiconv<num>.dylib
     7# If gs2-server.sh is run from GLI, we can't just test for the existence
     8# of "apache-httpd", so use the full path (from GSDLHOME) to test it exists
    59function test-gsdlhome {
    610    if [ $testdone == "0" ] ; then
     
    1620        echo "  GSDLHOME = $GSDLHOME" ;
    1721        echo "  GSDLOS   = $GSDLOS" ;
     22        if test -e "$GSDLHOME/apache-httpd" ; then
     23        echo "+Adding in executable path for apache-httpd"
     24        PATH=$GSDLHOME/apache-httpd/$GSDLOS/bin:$PATH
     25        export PATH
     26       
     27        if test "$GSDLOS" = "linux" ; then
     28            LD_LIBRARY_PATH="$GSDLHOME/apache-httpd/$GSDLOS/lib:$LD_LIBRARY_PATH"
     29            export LD_LIBRARY_PATH
     30        elif test "$GSDLOS" = "darwin" ; then     
     31            DYLD_LIBRARY_PATH="$GSDLHOME/apache-httpd/$GSDLOS/lib:$DYLD_LIBRARY_PATH"
     32            export DYLD_LIBRARY_PATH
     33        fi
     34        fi
    1835        fi
    1936    testdone=1
Note: See TracChangeset for help on using the changeset viewer.