[GRASS-user] problem with gis.m on grass 6.2.0

I’ve just compiled 6.2.0 from source. I built it against gdal1.3.2 (compiled from source withot). Everythong seems to compile the right way but when I try to open a mapset in grass I receive this error:

GRASS 6.2.0 (spearfish60):/usr/local
/grass6/bin > Error in startup script: can’t read “parts(n)”: no such variable
while executing
“MapCanvas::zoom_new $mon $parts(n) $parts(s) $parts(e) $parts(w) $parts(nsres) $parts(ewres)”
(procedure “MapCanvas::zoom_gregion” line 11)
invoked from within
“MapCanvas::zoom_gregion $mon”
(procedure “MapCanvas::create” line 40)
invoked from within
“MapCanvas::create”
(procedure “Gm::startmon” line 11)
invoked from within
“Gm::startmon”
(procedure “Gm::create” line 69)
invoked from within
“Gm::create”
(procedure “main” line 30)
invoked from within
“main $argc $argv”
(file “/usr/local/grass6/grass-6.2.0/etc/gm/gm.tcl” line 521)

I tried “googling” but I haven’t found anything to solve it. Can anyone help me?
Thanks in advance,

Giovannni

G. Allegri wrote:

I've just compiled 6.2.0 from source. I built it against gdal1.3.2
(compiled from source withot). Everythong seems to compile the right
way but when I try to open a mapset in grass I receive this error:

GRASS 6.2.0 (spearfish60):/usr/local/grass6/bin > Error in startup
script: can't read "parts(n)": no such variable
    while executing
"MapCanvas::zoom_new $mon $parts(n) $parts(s) $parts(e) $parts(w)
$parts(nsres) $parts(ewres)"
    (procedure "MapCanvas::zoom_gregion" line 11)

..

I tried "googling" but I haven't found anything to solve it. Can
anyone help me?

Sorry for the opaque error message, we are working that.

Run "g.region -p" from the command line to see what the real problem is.
(did you add /usr/local/lib to /etc/ld.so.conf and run ldconfig after
building & installing GDAL?)

Hamish

I forgot to do ldconfig this time! It solved the problem. Thank you Hamish.

Giovanni

2006/11/30, Hamish <hamish_nospam@yahoo.com>:

G. Allegri wrote:

I’ve just compiled 6.2.0 from source. I built it against gdal1.3.2
(compiled from source withot). Everythong seems to compile the right
way but when I try to open a mapset in grass I receive this error:

GRASS 6.2.0 (spearfish60):/usr/local/grass6/bin > Error in startup
script: can’t read “parts(n)”: no such variable
while executing
“MapCanvas::zoom_new $mon $parts(n) $parts(s) $parts(e) $parts(w)
$parts(nsres) $parts(ewres)”
(procedure “MapCanvas::zoom_gregion” line 11)

I tried “googling” but I haven’t found anything to solve it. Can
anyone help me?

Sorry for the opaque error message, we are working that.

Run “g.region -p” from the command line to see what the real problem is.
(did you add /usr/local/lib to /etc/ld.so.conf and run ldconfig after
building & installing GDAL?)

Hamish