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)
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.
Would it be OK to add --with-proj=PROJDIR to configure? PROJDIR is the path to PROJ.4 (above bin, include, and lib). Then configure could look for include and lib under PROJDIR and lib/proj/Makefile could use NAD2BIN = $(PROJDIR)/bin.
- Bev
Bev Wallace
Lockheed Martin, Sunnyvale, CA, USA
beverly.t.wallace@lmco.com
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
Radim Blazek wrote:
> 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
Yes; there is no point setting LD_LIBRARY_PATH if it isn't exported.
and is it necessary to test if $LD_LIBRARY_PATH is defined,
is it ':/some/path' error?
Potentially; I think that it's best to be safe.
Also, using shared libraries may cause problems for tcltkgrass when it
runs a program in an xterm. If xterm is setuid (which is common),
LD_LIBRARY_PATH may end up being unset automatically.
--
Glynn Clements <glynn.clements@virgin.net>