Changeset 29349


Ignore:
Timestamp:
2014-10-02T18:09:40+13:00 (10 years ago)
Author:
ak19
Message:

Fixing the problem on Mac Lion binaries (not svn) of wget not running when solrserver.pm invokes it, which results in rebuilding solr collections from GLI or from the cmd line to fail. If the gnome-lib env is set up, then the gs2build/bin/darwin/wget executable of Lion binaries works. Don't want to adjust the overall environment of the terminal, as that can mess up display of graphical programs like emacs at least on linux. Instead, calling util::set_gnomelib_env() that was introduced earlier this year before running the wget command. Doing so sets the gnome-lib env for the wget cmd. This is the solution that was since recently already being used in gs2build/bin/script/gsWget.pl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/solr/trunk/src/perllib/solrserver.pm

    r29219 r29349  
    7676##    print STDERR "\n\n**** _wget_service SOLR WEB URL: $url\n\n";
    7777   
     78    # the wget binary is dependent on the gnomelib_env (particularly lib/libiconv2.dylib) being set, particularly on Mac Lion binaries (android too?)
     79    &util::set_gnomelib_env(); # this will set the gnomelib env once for each subshell launched, by first checking if GEXTGNOME is not already set
     80
    7881    my $cmd = "wget -O - \"$url\" 2>&1";
    7982
Note: See TracChangeset for help on using the changeset viewer.