[GRASSLIST:5565] Re: GRASS 5.0.1 compilation issues

Andreas Lange Andreas.C.Lange at GMX.de
Sun Feb 16 08:27:18 EST 2003


Hi Wayne,

i assume you are using Solaris 9 OE?

Wayne Gibson wrote:
> 
> I'm attempting to compile GRASS 5.0.1 on a SunBlade 1000.  There are quite a few
> "failed" messages in the config.log file.  I assume that is normal.  When I
> "make" the package, the only errors written to "error.log" are
> 
> Compilation error in module: src/raster/r.tiff (ignored)
> Compilation error in module: src/display/devices/PNGdriver (ignored)

You need to install tiff and png packages (from www.sunfreeware.com) for
the required libraries.

> 
> I assume these can be ignored.
> 
> Now I attempt to start GRASS and I get the error message:
> 
>    Sorry, I need to know a more specific terminal type than "".^M
> 
> I've tracked it down to the program call "set_data" found in "etc/Init.sh".
> When I replace the "set_data" program with the one from the pre-compiled SUN
> package, all works just fine.
> 
> I thought it might be a library issue so I ran "ldd" to see which dynamic
> libraries are required:
> 
> ldd /usr/local/grass5/etc/set_data
>         libncurses.so.5 =>       /usr/local/lib/libncurses.so.5
>         libcurses.so.1 =>        /usr/lib/libcurses.so.1
>         libm.so.1 =>     /usr/lib/libm.so.1
>         libnsl.so.1 =>   /usr/lib/libnsl.so.1
>         libz.so.1 =>     /usr/lib/libz.so.1
>         libsocket.so.1 =>        /usr/lib/libsocket.so.1
>         libc.so.1 =>     /usr/lib/libc.so.1
>         libdl.so.1 =>    /usr/lib/libdl.so.1
>         libmp.so.2 =>    /usr/lib/libmp.so.2
>         /usr/platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1
> 

IMHO on Solaris 9 the path /usr/local/lib is not in the standard library
search path. There are two options:
edit your .profile (depending on which shell you use):
LD_LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH
(this will work only for your account)
or
use crle (compare man crle) as root to add /usr/local/lib to the system
wide library search path.
(theoretically there are other options, e. g. linking the libraries from
/usr/local/lib to /usr/lib)

I have compiled a package for grass 5.0.1 on Solaris 9 OE/SPARC, but i
don't want to upload it, as i can not support the setup of the package.

HTH,

Andreas

-- 
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850




More information about the grass-user mailing list