[GRASSLIST:3949] Re: error while loading shared libraries
Markus Neteler
neteler at itc.it
Tue Jun 25 13:42:21 EDT 2002
On Tue, Jun 25, 2002 at 07:34:02PM +0200, Ulrich Leopold wrote:
> this is the result:
>
> -------------------------------------------------------------------
> Mapset <nl500> in Location <Netherlands>
> GRASS 5.0.0pre3 > ldd /usr/local/grass5/driver/PNG
> libz.so.1 => /usr/lib/libz.so.1 (0x4002c000)
> libgd.so => not found
> libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4003a000)
> libpng.so.2 => /usr/lib/libpng.so.2 (0x40059000)
> libm.so.6 => /lib/libm.so.6 (0x4007b000)
> libc.so.6 => /lib/libc.so.6 (0x4009d000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>
> -------------------------------------------------------------------
>
>
> Mapset <nl500> in Location <Netherlands>
> GRASS 5.0.0pre3 > echo $LD_LIBRARY_PATH
> /usr/local/matlab_r12/extern/lib/glnx86:/usr/local/matlab_r12/sys/os/glnx86:/usr/local/arch/mozilla-0.9.6:/usr/local/arch/mozilla-1.0.0:/usr/local/arch/grass5/lib
>
>
> -------------------------------------------------------------------
>
> libgd cannot be found and is not included in the path. How can I set the
> path to libgd? It is in /usr/lib/.
It seems that LD_LIBRARY_PATH is defined in your
.bashrc or
.cshrc
(echo $SHELL to find out your shell). Edit the related file (.bashrc or
.cshrc or whatever) and add
:/usr/lib:/usr/local/lib
to the setting of LD_LIBRARY_PATH. However it may be better to change it
to
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/matlab_r12/extern/lib/glnx86:...
Means: To have the original LD_LIBRARY_PATH included. Then start GRASS
in a new shell window, check again
echo $LD_LIBRARY_PATH
and try.
Note that this is a local misconfiguration which is not related to GRASS.
Excluding /usr/lib and /usr/local/lib from LD_LIBRARY_PATH will also
cause problems for other programs.
If you cannot find and redefinition of LD_LIBRARY_PATH in your .bashrc
or .cshrc or whatever, ask your local admin to repair that.
Hope this helps,
Markus
> Regards, Ulrich
>
>
> Markus Neteler wrote:
> > On Tue, Jun 25, 2002 at 07:16:13PM +0200, Ulrich Leopold wrote:
> >
> >>the libraries are installed. Is this a path problem? Can I set a path
> >>for the libraries?
> >
> >
> > what does
> >
> > ldd /usr/local/grass5/driver/PNG
> >
> > tell you (assuming that GRASS is installed in /usr/local/grass5).
> > Check also
> > echo $LD_LIBRARY_PATH
> >
> > if this includes the path to libgd.
> >
> > Markus
> >
> >
> >>Ulrich
> >>
> >>Markus Neteler wrote:
> >>
> >>>Hi Ulrich,
> >>>
> >>>On Tue, Jun 25, 2002 at 04:59:19PM +0200, Ulrich Leopold wrote:
> >>>
> >>>
> >>>>Dear list,
> >>>>
> >>>>Is the following error message a bug in GRASS5.0.0pre3 or a problem in
> >>>>my system?
> >>>>
> >>>>----------------------------------------------------------------------
> >>>>/usr/local/arch/grass5/driver/PNG: error while loading shared libraries:
> >>>>libgd.so: cannot open shared object file: No such file or directory
> >>>
> >>>
> >>>^^^^^^^^^^
> >>>this library must be installed on your system. Please have a look at the
> >>>manual page:
> >>>
> >>>g.manual pngdriver
> >>>
> >>>where to acquire it.
> >>>
> >>>Regards,
> >>>
> >>> Markus Neteler
> >>>
> >>
> >>
> >>--
> >>__________________________________________________
> >>
> >>Ulrich Leopold MSc.
> >>
> >>Department of Physical Geography
> >>Institute for Biodiversity and Ecosystem Dynamics
> >>Faculty of Science
> >>University of Amsterdam
> >>Nieuwe Achtergracht 166
> >>NL-1018WV Amsterdam
> >>
> >>Phone: +31-(0)20-525-7456 (7451 Secretary)
> >>Fax: +31-(0)20-525-7431
> >>Email: uleopold at science.uva.nl
> >>http://www.frw.uva.nl/soil/Welcome.html
> >>
> >>Check us also out at:
> >>Netherlands Centre for Geo-ecological Research
> >>http://www.frw.uva.nl/icg
> >>
> >
> >
>
>
> --
> __________________________________________________
>
> Ulrich Leopold MSc.
>
> Department of Physical Geography
> Institute for Biodiversity and Ecosystem Dynamics
> Faculty of Science
> University of Amsterdam
> Nieuwe Achtergracht 166
> NL-1018WV Amsterdam
>
> Phone: +31-(0)20-525-7456 (7451 Secretary)
> Fax: +31-(0)20-525-7431
> Email: uleopold at science.uva.nl
> http://www.frw.uva.nl/soil/Welcome.html
>
> Check us also out at:
> Netherlands Centre for Geo-ecological Research
> http://www.frw.uva.nl/icg
>
More information about the grass-user
mailing list