Changeset 20923


Ignore:
Timestamp:
2009-11-10T17:23:59+13:00 (12 years ago)
Author:
oranfry
Message:

If there's a local perl installation inside greenstone on Linux, setup.bash will now set up environment variables for this. (A local perl installation is necessary on linux machines whose own system perl installations conflict with Greenstone.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/setup.bash

    r20855 r20923  
    271271
    272272
    273 
     273# if the Perl-for-greenstone tarfile has been installed in the bin/linux
     274# folder, then we set things up to use that, instead of a system perl
     275if [ -d "$GSDLHOME/bin/$GSDLOS/perl" ] ; then
     276    PATH=$GSDLHOME/bin/$GSDLOS/perl/bin:$PATH
     277    export PATH
     278    LD_LIBRARY_PATH=$GSDLHOME/bin/$GSDLOS/perl/lib/5.8.9/i686-linux-thread-multi/CORE:$LD_LIBRARY_PATH
     279    export LD_LIBRARY_PATH
     280    if [ "x$PERL5LIB" = "x" ] ; then
     281    PERL5LIB=$GSDLHOME/bin/$GSDLOS/perl/lib
     282    else
     283    PERL5LIB=$GSDLHOME/bin/$GSDLOS/perl/lib:$PERL5LIB
     284    fi
     285    export PERL5LIB
     286    echo ""
     287    echo "***** Perl installation detected inside Greenstone."
     288    echo "Command-line scripts need to be run with \"perl -S ...\""
     289    echo "    e.g. perl -S import.pl -removeold demo"
     290    echo ""
     291# else we may in future need to update PERL5LIB with some other (further) locations
     292fi
Note: See TracChangeset for help on using the changeset viewer.