[GRASS5] [bug #1127] (grass) crash on startup unless Init.sh hand-modified

Request Tracker grass-bugs at intevation.de
Thu Jun 20 00:13:02 EDT 2002

this bug's URL: http://intevation.de/rt/webrt?serial_num=1127

Subject: crash on startup unless Init.sh hand-modified

Platform: Solaris2.X/Sparc
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: pre4,also CVS branch updated 20020619

Please enter error description here (and your name)

[present in 5.0pre4 and in the CVS development branch]

On startup, the "grass5" script crashes with the cryptic message
"ld.so.1: /usr/local/grass5pre4/grass5/etc/set_data: fatal: libz.so: open failed: No such file or directory

Upon investigation, determined that it's while trying to sh "Init.sh".  Inside "Init.sh" there's a call to set_data, which depends on proper setting of LD_LIBRARY_PATH to locate the dependency libraries (zlib, X Windows, fftw, etc)

Adding /usr/lib:/usr/local/lib:/usr/openwin/lib to the LD_LIBRARY_PATH in Init.sh solves the problem.  But I think the right fix is to modify Init.sh's source file, src/general/init/init.sh, to include the locations of the subordinate libraries, at least on Solaris.  Those library locations are available in the config script.

This is another one that's trivial to fix once you know the answer, but would be maddening to track down if you're a first-time Grass user.  Most people will simply conclude "Grass DFW".

Non-defaults:  no ODBC or Postgres, included FFTW, GDAL, TCL/TK

Hal Mueller

-------------------------------------------- Managed by Request Tracker

More information about the grass-dev mailing list