[GRASS5] Solaris GRASS 5.1, shared libraries, external PROJ

Wallace, Beverly T beverly.t.wallace at lmco.com
Thu Sep 18 11:36:40 EDT 2003


Hi Radim,

I am running bin.$(ARCH)/grass51.

It finds the GRASS shared libraries if I move "export LD_LIBRARY_PATH" 
outside of the if statement in etc/Init.sh as you suggested. 
	if [ ! "$LD_LIBRARY_PATH" ] ; then
	  LD_LIBRARY_PATH=$GISBASE/lib
	else
	  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GISBASE/lib
	fi
	export LD_LIBRARY_PATH

For Solaris, it works OK if LD_LIBRARY_PATH starts with a colon, but
I don't know about other systems.

Thank you, 
	Bev

> -----Original Message-----
> From:	Radim Blazek [SMTP:blazek at itc.it]
> Sent:	Thursday, September 18, 2003 12:37 AM
> To:	grass5 at grass.itc.it
> Subject:	Re: [GRASS5] Solaris GRASS 5.1, shared libraries, external PROJ
> 
> On Wednesday 17 September 2003 23:28, Wallace, Beverly T wrote:
> > Dear GRASS Developers,
> >
> > I have at last successfully built GRASS 5.1 (2003_09_06) on Solaris 9. 
> > Thank you to everyone who gave me advice.
> >
> > The ps/ps.map/Makefile needs Proj includes:
> > EXTRA_INC = $(VECT_INC) $(PROJINC)
> 
> OK, done in cvs.
> 
> > In order to run grass51, I needed to set LD_LIBRARY_PATH to find the shared
> > libraries in dist.$ARCH/lib and the external PROJ.4 lib.  This was not
> > mentioned in the INSTALL file.
> 
> This is done in etc/Init.sh:
> if [ ! "$LD_LIBRARY_PATH" ] ; then
>   LD_LIBRARY_PATH=$GISBASE/lib
>   export LD_LIBRARY_PATH
> else
>   LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GISBASE/lib
> fi
> 
> this section is identical to 5.0, but why it is exported only 
> in the first case, would not be better
> 
> if [ ! "$LD_LIBRARY_PATH" ] ; then
>   LD_LIBRARY_PATH=$GISBASE/lib
> else
>   LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GISBASE/lib
> fi
> 
> export LD_LIBRARY_PATH
> 
> and is it necessary to test if $LD_LIBRARY_PATH is defined,
> is it ':/some/path' error?
> 
> Maybe you are not running GRASS within regular session?
> BTW, you can run applications without $GISRC and user mapset.
> (example in GRASS++ and QGIS)
> 
> Radim
> 
> _______________________________________________
> grass5 mailing list
> grass5 at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5




More information about the grass-dev mailing list