[GRASS5] PNG driver: libgd2 pickup problem

Bernhard Reiter bernhard at intevation.de
Tue Apr 23 06:08:58 EDT 2002


On Tue, Apr 23, 2002 at 11:51:25AM +0200, Markus Neteler wrote:
> > Make sure the libpng library comes first when loading,
> > e.g. in LD_LIBRARY_PATH.
> > Ldd has to show the right one. Check the path,
> > e.g. following through on:
> > 	ls -l /usr/lib/libpng.so.2
> 
> How easy... Thanks:
> 
> export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/software/GRASS5.0.0/lib
> 
> d.mon PNG
> PNG: GRASS_TRUECOLOR status: TRUE
> PNG: collecting to file: map.png,
>      GRASS_WIDTH=640, GRASS_HEIGHT=480
> Graphics driver [PNG] started
> 
> 
> Bingo. Obviously I was confused by this comment:
> http://grass.itc.it/pipermail/grass5/2002-March/002225.html
>  "Note: LD_LIBRARY_PATH won't affect which version is used; the two
>  libraries will have different sonames (libgd.so.1 vs libgd.so.2)."

The statement is correct, but for some reasons your libraries 
do have the same name. They shouldn't, though.

> According to config.log the correct libgd (2.x) is used after several tries,
> But above statement seems not to be true, since your (Bernhard's) suggestion
> works.
> 
> It is still a slightly unpleasant solution, since other programs started
> inside GRASS session may fail now (not sure, perhaps 2.x is fully downward
> compliant).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 248 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20020423/3664b5ef/attachment.bin


More information about the grass-dev mailing list