Changeset 16031


Ignore:
Timestamp:
2008-06-16T17:26:41+12:00 (16 years ago)
Author:
ak19
Message:

RemoteGreenstone 3 server requires the path to perl to be set in the PATH variable (whenever gliserver.pl does an eval using Perl). However the perl path is not passed to gliserver.pl by Tomcat (even though build.xml sets Tomcat's PATH). Therefore perlpath has been added as a user-definable property in file gsdl3site.cfg and will be read in by gsdlCGI(4gs3).pm. This is a problem similar to the issue of JAVA_HOME not being set for GS3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/WEB-INF/cgi/gsdlCGI4gs3.pm

    r15960 r16031  
    232232}
    233233
     234sub get_perl_path {
     235    my $self = shift @_;
     236   
     237    if (defined $self->{'perlpath'}) {
     238    return $self->{'perlpath'};
     239    }
     240
     241    my $perlpath = $self->get_config_info("perlpath");
     242
     243    $perlpath =~ s/(\/|\\)$//; # remove trailing slash
     244
     245    return $perlpath;
     246}
     247
    234248sub get_gsdl_os {
    235249    my $self = shift @_;
     
    276290    my $gsdl_perl_bin_directory = &util::filename_cat($gsdlhome, "bin", "windows", "perl", "bin");
    277291    &util::envvar_append("PATH", $gsdl_perl_bin_directory);
     292    }
     293    else { # it's on linux now
     294    my $perlpath = $self->get_perl_path();
     295    &util::envvar_append("PATH", $perlpath);
    278296    }
    279297}
Note: See TracChangeset for help on using the changeset viewer.