[GRASSLIST:6054] PNG driver

Sorry,
in my previous message I made a mistake as I wrote libgd2.so.2 instead of
libgd.so.2. So the correct message is as follows:

Dear GRASSusers,
I'm having a problem with PNG driver.
With:
d.mon start=PNG
I obtain the following message:
/usr/local/grass5/driver/PNG: error while loading shared library:
libgd.so.2: cannot open shared object file; No such file or directory
No socket to connect to for monitor <PNG>

I checked for libgd.so.2
and it's in:
/home/local/lib/libgd.so.2

What 's wrong?

Many thanks.
Aldo Clerici
Dip. Scienze della Terra
Università di Parma
Italy

P.S. Thanks to Glynn Clements for his answer.

Aldo Clerici wrote:

Sorry,
in my previous message I made a mistake as I wrote libgd2.so.2 instead of
libgd.so.2. So the correct message is as follows:

Dear GRASSusers,
I'm having a problem with PNG driver.
With:
d.mon start=PNG
I obtain the following message:
/usr/local/grass5/driver/PNG: error while loading shared library:
libgd.so.2: cannot open shared object file; No such file or directory
No socket to connect to for monitor <PNG>

I checked for libgd.so.2
and it's in:
/home/local/lib/libgd.so.2

What 's wrong?

The loader isn't looking in /home/local/lib. Either:

1. Set the environment variable LD_LIBRARY_PATH, e.g. by adding:

  LD_LIBRARY_PATH=/home/local/lib
  export LD_LIBRARY_PATH

to your shell's startup file (e.g. ~/.bash_profile, ~/.profile).

2. Add /home/local/lib to /etc/ld.so.conf then run "ldconfig" (this
assumes that you are running Linux).

--
Glynn Clements <glynn.clements@virgin.net>

I am a pretty darn new Grass user and fairly new user of Linux. I am trying to get nviz going. I did the original installation of Grass from the FreeGIS cd onto a computer running Redhat Linux version 7.1. Nviz wasn’t installed. I found something on the net that I had to obtain nviz_postgresql_i686-pc-linux-gnu.tar.gz and install it. I did that. Now when I try to start nviz after starting Grass t.0 I get the below error message. I don’t really know what the message is saying is missing much less how to deal with the problem. Can anyone help me? Thanks in advance to anyone with information on the issue/problem.

/opt/grass/grass5/etc/nviz2.2/NVWISH2.2: error while loading shared libraries: libtcl.so.0: cannot load shared object file: No such file or directory
child process exited abnormally
while executing
“exec /opt/grass/grass5/etc/nviz2.2/NVWISH2.2 -f /opt/grass/grass5/etc/nviz2.2/scripts/nviz2.2_script -name NVIZ >&@stdout
(“eval” body line 1)
invoked from within
“eval exec $env(GISBASE)/etc/nviz2.2/NVWISH2.2 -f $env(GISBASE)/etc/nviz2.2/scripts/nviz2.2_script -name NVIZ >&@stdout
invoked from within
“if {$argv == “”} {
#no arguments
eval exec $env(GISBASE)/etc/nviz2.2/NVWISH2.2 -f $env(GISBASE)/etc/nviz2.2/scripts/nviz2.2_script -name NVIZ >&@stdo…”
(file “/opt/grass/grass5/bin/nviz” line 16)

On Tue, Apr 15, 2003 at 05:30:23PM -0700, John Doucette wrote:

I am a pretty darn new Grass user and fairly new user of Linux. I am
trying to get nviz going. I did the original installation of Grass from
the FreeGIS cd onto a computer running Redhat Linux version 7.1. Nviz
wasn't installed. I found something on the net that I had to obtain
nviz_postgresql_i686-pc-linux-gnu.tar.gz and install it. I did that. Now
when I try to start nviz after starting Grass t.0 I get the below error
message. I don't really know what the message is saying is missing much
less how to deal with the problem. Can anyone help me? Thanks in advance
to anyone with information on the issue/problem.

/opt/grass/grass5/etc/nviz2.2/NVWISH2.2: error while loading shared libraries: libtcl.so.0: cannot load shared object file: No such file or directory

The tcl/tk library/ies are missing: Please have a look at the FAQ:
http://grass.itc.it/faq/index.html#install
-> NVIZ: error loading shared libraries...(libtcl.so.0 and/or libtk.so.0)

Cheers

Markus Neteler

Markus Neteler wrote:

> /opt/grass/grass5/etc/nviz2.2/NVWISH2.2: error while loading shared libraries: libtcl.so.0: cannot load shared object file: No such file or directory

The tcl/tk library/ies are missing

Or they aren't compatible.

1. I don't know about RH7.1, but on RH6.2 the library name include the
version number (e.g. libtk8.0.so). Creating a symlink *might* work,
but see the next point.

2. You have to have the same version of Tk as was used for building
NVIZ; if NVIZ was built for Tk 8.3, then you have to have Tk 8.3 to
run it.

--
Glynn Clements <glynn.clements@virgin.net>

Thanks for your reply and thanks to Marcus Neteler.

I have the tcl/tk libraries installed - maybe too many. I have them listed at:
http://web1.greatbasin.net/~porphyry/tcl.htm

The list isn’t too long (about 100K) but I didn’t want every one who gets these messages to have to wait for the files to download.

I have nviz2.2

http://web1.greatbasin.net/~porphyry/nviz.htm

----- Original Message -----
From: Glynn Clements
To: GRASSLIST@baylor.edu
Sent: Wednesday, April 16, 2003 6:21 AM
Subject: [GRASSLIST:6065] Re: Getting NVIZ to work

Markus Neteler wrote:

/opt/grass/grass5/etc/nviz2.2/NVWISH2.2: error while loading shared libraries: libtcl.so.0: cannot load shared object file: No such file or directory

The tcl/tk library/ies are missing

Or they aren’t compatible.

  1. I don’t know about RH7.1, but on RH6.2 the library name include the
    version number (e.g. libtk8.0.so). Creating a symlink might work,
    but see the next point.

  2. You have to have the same version of Tk as was used for building
    NVIZ; if NVIZ was built for Tk 8.3, then you have to have Tk 8.3 to
    run it.


Glynn Clements <glynn.clements@virgin.net>

On Wed, Apr 16, 2003 at 09:35:59AM -0700, John Doucette wrote:

Thanks for your reply and thanks to Marcus Neteler.

I have the tcl/tk libraries installed - maybe too many. I have them listed at:
http://web1.greatbasin.net/~porphyry/tcl.htm

The list isn't too long (about 100K) but I didn't want every one who gets
these messages to have to wait for the files to download.

Perfect.

> /opt/grass/grass5/etc/nviz2.2/NVWISH2.2: error while loading shared libraries: libtcl.so.0: cannot load shared object file: No such file or directory

The tcl/tk library/ies are missing

According to you list you have:
# /usr/lib/libtcl.so
# /usr/lib/libtcl8.3.so

You may check what '/usr/lib/libtcl.so' is - a link to
/usr/lib/libtcl8.3.so?

Completely missing in your list is /usr/lib/libtk...so which is
also a requirement. Perhaps you consider to reinstall the
tcl.rpm and tk.rpm

Markus Neteler