[GRASS5] pre2 nviz & darwin

hello all:

i have grass5pre2 running on darwin1.4 (osx 10.1) and received the following error when trying to launch nviz. most of my *.dylib are in /usr/lib; i only have a few tcltk *.dylib's in /usr/local/lib.

any help is appreciated.

thanks,
andy

p.s. please cc me in any responses as i'm using the digest mode for the grass5 list.
p.p.s. when is baylor going to offer a digest for the grasslist?

---error---

GRASS 5.0.0pre2 > nviz
dyld: /usr/local/grass5/etc/nviz2.2/NVWISH2.2 can't open library: /usr/local/lib/libdl.dylib (No such file or directory, errno = 2)
child process exited abnormally
     while executing
"exec /usr/local/grass5/etc/nviz2.2/NVWISH2.2 -f /usr/local/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 "/usr/local/grass5/bin/nviz" line 13)

andy agena wrote:

i have grass5pre2 running on darwin1.4 (osx 10.1) and received the
following error when trying to launch nviz. most of my *.dylib are in
/usr/lib; i only have a few tcltk *.dylib's in /usr/local/lib.

GRASS 5.0.0pre2 > nviz
dyld: /usr/local/grass5/etc/nviz2.2/NVWISH2.2 can't open library:
/usr/local/lib/libdl.dylib (No such file or directory, errno = 2)

Odd. Is libdl.dylib present on your system, in /usr/lib,
/usr/local/lib or elsewhere?

FWIW, try removing $(DLLIB) from src.contrib/GMSL/NVIZ2.2/src/Gmakefile;
if Tcl needs libdl, configure will add -ldl to TCLTKLIBS.

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

On Thursday, October 25, 2001, at 06:39 AM, andy agena wrote:

i have grass5pre2 running on darwin1.4 (osx 10.1) and received the following error when trying to launch nviz. most of my *.dylib are in /usr/lib; i only have a few tcltk *.dylib's in /usr/local/lib.

Hi Andy,

I am sorry I missed the part about the missing "/usr/local/lib/libdl.dylib", that would be my fault.

I will tar up the lib and send it to you right away.

Kind regards,

Jeshua Lacock http://OpenOSX.com
Programmer/Owner http://SierraMaps.com
Phone: (760) 935-4736 http://3dTopoMaps.com

hi again:

jeshua zapped me libdl.a and libdl.dylib, so i have them installed now.

however, if i try nviz from tcltkgrass, the command passed is "nviz el=elevation.dem", which gives "Sorry, <el=> is ambiguous".

if i try from the cli, i get : "ERROR: window name "wait_ok" already exists in parent..."

any ideas?

thanks,
andy

On Thursday, October 25, 2001, at 10:29 AM, Glynn Clements wrote:

andy agena wrote:

i have grass5pre2 running on darwin1.4 (osx 10.1) and received the
following error when trying to launch nviz. most of my *.dylib are in
/usr/lib; i only have a few tcltk *.dylib's in /usr/local/lib.

GRASS 5.0.0pre2 > nviz
dyld: /usr/local/grass5/etc/nviz2.2/NVWISH2.2 can't open library:
/usr/local/lib/libdl.dylib (No such file or directory, errno = 2)

Odd. Is libdl.dylib present on your system, in /usr/lib,
/usr/local/lib or elsewhere?

FWIW, try removing $(DLLIB) from src.contrib/GMSL/NVIZ2.2/src/Gmakefile;
if Tcl needs libdl, configure will add -ldl to TCLTKLIBS.

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

andy agena wrote:

however, if i try nviz from tcltkgrass, the command passed is "nviz
el=elevation.dem", which gives "Sorry, <el=> is ambiguous".

Odd; that works fine here, both from the command line and via
tcltkgrass.

What does "nviz help" say?

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

On Thursday, October 25, 2001, at 07:08 PM, Glynn Clements wrote:

andy agena wrote:

however, if i try nviz from tcltkgrass, the command passed is "nviz
el=elevation.dem", which gives "Sorry, <el=> is ambiguous".

Odd; that works fine here, both from the command line and via
tcltkgrass.

What does "nviz help" say?

GRASS 5.0.0pre2 > nviz help

Description:
  nviz - Visualization and animation tool for GRASS data

Usage:
  nviz2.2_script [-qkx] [elevation=name[,name,...]]
    [vector=name[,name,...]] [sites=name[,name,...]] [path=name]
    [script=name]

Flags:
   -q Quickstart - Do not load any data
   -k Script kill option
   -x Start in Demo mode

Parameters:
   elevation Raster file(s) for Elevation
      vector Vector overlay file(s)
       sites Sites overlay file(s)
        path Set alternative panel path
      script Execute script file at startup
                                                                                  Mapset <PERMANENT> in Location <spearfish>

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

andy agena wrote:

>> however, if i try nviz from tcltkgrass, the command passed is "nviz
>> el=elevation.dem", which gives "Sorry, <el=> is ambiguous".
>
> Odd; that works fine here, both from the command line and via
> tcltkgrass.
>
> What does "nviz help" say?
>

GRASS 5.0.0pre2 > nviz help

[snip]

That implies that the error message is bogus, i.e. a problem with
G_parser(), but I can't see anything obvious.

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

Glynn Clements wrote:

andy agena wrote:

> >> however, if i try nviz from tcltkgrass, the command passed is "nviz
> >> el=elevation.dem", which gives "Sorry, <el=> is ambiguous".
> >
> > Odd; that works fine here, both from the command line and via
> > tcltkgrass.
> >
> > What does "nviz help" say?
> >
>
> GRASS 5.0.0pre2 > nviz help

[snip]

That implies that the error message is bogus, i.e. a problem with
G_parser(), but I can't see anything obvious.

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

I am guessing here, but is it possible that TCL (tcltkgrass) is getting
confused with the command? In other words is it reporting the error
before it even gets to G_parser?

It might help to know what the raster file name is that is creating the
problem in case of odd characters. Or is it "elevation.dem".

--
Bob Covill

Tekmap Consulting

E-Mail: bcovill@tekmap.ns.ca

hi glynn:

this is the console output i get when i fire up xwindows (i've snipped the piece about 'if your version is old..'). do you think any of this is relevant to my problems?

thanks,
andy

Warning: no access to tty (Inappropriate ioctl for device).
Thus no job control in this shell.
...
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
...
/usr/X11R6/lib/X11/xinit/xinitrc: command not found: fspanel [30]

On Friday, October 26, 2001, at 12:09 PM, Glynn Clements wrote:

andy agena wrote:

however, if i try nviz from tcltkgrass, the command passed is "nviz
el=elevation.dem", which gives "Sorry, <el=> is ambiguous".

Odd; that works fine here, both from the command line and via
tcltkgrass.

What does "nviz help" say?

GRASS 5.0.0pre2 > nviz help

[snip]

That implies that the error message is bogus, i.e. a problem with
G_parser(), but I can't see anything obvious.

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

Bob Covill wrote:

Glynn Clements wrote:
>
> andy agena wrote:
>
> > >> however, if i try nviz from tcltkgrass, the command passed is "nviz
> > >> el=elevation.dem", which gives "Sorry, <el=> is ambiguous".
> > >
> > > Odd; that works fine here, both from the command line and via
> > > tcltkgrass.
> > >
> > > What does "nviz help" say?
> > >
> >
> > GRASS 5.0.0pre2 > nviz help
>
> [snip]
>
> That implies that the error message is bogus, i.e. a problem with
> G_parser(), but I can't see anything obvious.
>
> --
> Glynn Clements <glynn.clements@virgin.net>

I am guessing here, but is it possible that TCL (tcltkgrass) is getting
confused with the command? In other words is it reporting the error
before it even gets to G_parser?

It might help to know what the raster file name is that is creating the
problem in case of odd characters. Or is it "elevation.dem".

it gives him the same error even if he just calls nviz -q, so it is not in
the name,
if I understand it correctly. Andy, does it open any of the windows when you
start nviz -q
(the graphics window, "please wait" window and then the tcltk interface)?

Helena

--
Bob Covill

Tekmap Consulting

E-Mail: bcovill@tekmap.ns.ca
_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

Bob Covill wrote:

> > >> however, if i try nviz from tcltkgrass, the command passed is "nviz
> > >> el=elevation.dem", which gives "Sorry, <el=> is ambiguous".
> > >
> > > Odd; that works fine here, both from the command line and via
> > > tcltkgrass.
> > >
> > > What does "nviz help" say?
> > >
> >
> > GRASS 5.0.0pre2 > nviz help
>
> [snip]
>
> That implies that the error message is bogus, i.e. a problem with
> G_parser(), but I can't see anything obvious.

I am guessing here, but is it possible that TCL (tcltkgrass) is getting
confused with the command? In other words is it reporting the error
before it even gets to G_parser?

Unlikely; the error message matches the one in src/libes/gis/parser.c:

  if (got_one > 1)
  {
    fprintf(stderr,"Sorry, <%s=> is ambiguous\n", the_key) ;
    return(1) ;
  }

This error message should only occur if one of the argument names (the
LHS of an "arg=val" argument) is a prefix of multiple declared
options, but isn't an exact match for any of them.

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

andy agena wrote:

this is the console output i get when i fire up xwindows (i've snipped
the piece about 'if your version is old..'). do you think any of this
is relevant to my problems?

Warning: no access to tty (Inappropriate ioctl for device).
Thus no job control in this shell.
...
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
...
/usr/X11R6/lib/X11/xinit/xinitrc: command not found: fspanel [30]

I can't see how any of these could cause the error message in
question.

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