[GRASS-user] cvs - error Ubuntu 7.10

Hello

I upgraded from Ubuntu 6.06 to 7.10 and since then I got

child process exited abnormally
Error in startup script: can't read "parts(w)": no such variable
    while executing
"set $parts(w) [expr round($parts(w)/$parts(ewres))*$parts(ewres)]"
    (procedure "MapCanvas::zoom_gregion" line 16)
    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 79)
    invoked from within
"Gm::create"
    (procedure "main" line 30)
    invoked from within
"main $argc $argv"
    (file "/usr/local/grass-6.3.cvs/etc/gm/gm.tcl" line 640)

when I tried to enter location mapset.

Then I updated my grass cvs and got following errors:

Started compilation: Di 20. Nov 16:10:14 CET 2007
--
Errors in:
/home/chrischne/grass6/lib/form
/home/chrischne/grass6/vector/v.digit

root@Iggel:~/grass6# cd lib/form/
root@Iggel:~/grass6/lib/form# make
gcc -L/home/chrischne/grass6/dist.i686-pc-linux-gnu/lib -Wl,--export-dynamic -Wl,-rpath-link,/home/chrischne/grass6/dist.i686-pc-linux-gnu/lib -o /home/chrischne/grass6/dist.i686-pc-linux-gnu/etc/form/form OBJ.i686-pc-linux-gnu/form.o -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lgrass_datetime \
                                 -ltk8.4 -lm -ltcl8.4 -lm -lm -lz
OBJ.i686-pc-linux-gnu/form.o: In function `main':
/home/chrischne/grass6/lib/form/form.c:296: undefined reference to `Tk_Main'
collect2: ld gab 1 als Ende-Status zurück
make: *** [/home/chrischne/grass6/dist.i686-pc-linux-gnu/etc/form/form] Fehler 1
root@Iggel:~/grass6/lib/form#

How do I solve these problems to get grass running again?

Thanks in advance
Christine
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

Hi Christine!

I really don't know how to help with this errors.

However,

a. Why don't sudo apt-get install grass (GRASS 6.2 is in the Gutsy
repositories)

or

b.Why don't you try to re-compile GRASS from source (?).
----------------------------------------------------------------

. Decide where you want to put your grass source code

e.g. /usr/local/src

Go there and create a directory (e.g. GRASS63)

* Give the appropriate rights... "sudo chown yourloginid:yourloginid
/usr/local/src/GRASS63" and "sudo chmod a+rx GRASS63/"

. Download the source code via cvs
[ You need cvs tool -- install with "sudo apt-get install cvs" ]

* Before trying to compile the source code, check the pre-requisities &
configure. There is a script (written for Ubuntu 6.06 -- link is below ) in
which all necessary steps are described.

. Download and check it out "less makegrass.sh"

Hope this helps.
---

http://grass.gdf-hannover.de/wiki/Compile_and_Install#Ubuntu_6.06

Christine Sandmeier wrote:

Hello

I upgraded from Ubuntu 6.06 to 7.10 and since then I got

child process exited abnormally
Error in startup script: can't read "parts(w)": no such variable
    while executing
"set $parts(w) [expr round($parts(w)/$parts(ewres))*$parts(ewres)]"
    (procedure "MapCanvas::zoom_gregion" line 16)
    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 79)
    invoked from within
"Gm::create"
    (procedure "main" line 30)
    invoked from within
"main $argc $argv"
    (file "/usr/local/grass-6.3.cvs/etc/gm/gm.tcl" line 640)

when I tried to enter location mapset.

Then I updated my grass cvs and got following errors:

Started compilation: Di 20. Nov 16:10:14 CET 2007
--
Errors in:
/home/chrischne/grass6/lib/form
/home/chrischne/grass6/vector/v.digit

root@Iggel:~/grass6# cd lib/form/
root@Iggel:~/grass6/lib/form# make
gcc -L/home/chrischne/grass6/dist.i686-pc-linux-gnu/lib
-Wl,--export-dynamic
-Wl,-rpath-link,/home/chrischne/grass6/dist.i686-pc-linux-gnu/lib -o
/home/chrischne/grass6/dist.i686-pc-linux-gnu/etc/form/form
OBJ.i686-pc-linux-gnu/form.o -lgrass_dbmiclient -lgrass_dbmibase
-lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz
-lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis
-lgrass_datetime -lz -lgrass_datetime \
                                 -ltk8.4 -lm -ltcl8.4 -lm -lm -lz
OBJ.i686-pc-linux-gnu/form.o: In function `main':
/home/chrischne/grass6/lib/form/form.c:296: undefined reference to
`Tk_Main'
collect2: ld gab 1 als Ende-Status zurück
make: *** [/home/chrischne/grass6/dist.i686-pc-linux-gnu/etc/form/form]
Fehler 1
root@Iggel:~/grass6/lib/form#

How do I solve these problems to get grass running again?

Thanks in advance
Christine
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
View this message in context: http://www.nabble.com/cvs---error-Ubuntu-7.10-tf4844145.html#a13859371
Sent from the Grass - Users mailing list archive at Nabble.com.

On Tue, Nov 20, 2007 at 04:21:15PM +0100, Christine Sandmeier wrote:

Hello

I upgraded from Ubuntu 6.06 to 7.10 and since then I got

child process exited abnormally
Error in startup script: can't read "parts(w)": no such variable
    while executing
"set $parts(w) [expr round($parts(w)/$parts(ewres))*$parts(ewres)]"
    (procedure "MapCanvas::zoom_gregion" line 16)
    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 79)
    invoked from within
"Gm::create"
    (procedure "main" line 30)
    invoked from within
"main $argc $argv"
    (file "/usr/local/grass-6.3.cvs/etc/gm/gm.tcl" line 640)

when I tried to enter location mapset.

This typically indicates a GDAL problem. What does
g.region -p
say?

Markus

Hello Christine,

so you have to fix the GDAL installation first. Without
that GRASS won't run at all.

Markus

On Tue, Nov 20, 2007 at 05:39:35PM +0100, Christine Sandmeier wrote:

Hello Markus

This is what g.region -p says:

g.region: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory

Christine

-------- Original-Nachricht --------
> Datum: Tue, 20 Nov 2007 16:45:30 +0100
> An: grass-user@lists.osgeo.org
> Betreff: Re: [GRASS-user] cvs - error Ubuntu 7.10

> On Tue, Nov 20, 2007 at 04:21:15PM +0100, Christine Sandmeier wrote:
> > Hello
> >
> > I upgraded from Ubuntu 6.06 to 7.10 and since then I got
> >
> >
> > child process exited abnormally
> > Error in startup script: can't read "parts(w)": no such variable
> > while executing
> > "set $parts(w) [expr round($parts(w)/$parts(ewres))*$parts(ewres)]"
> > (procedure "MapCanvas::zoom_gregion" line 16)
> > 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 79)
> > invoked from within
> > "Gm::create"
> > (procedure "main" line 30)
> > invoked from within
> > "main $argc $argv"
> > (file "/usr/local/grass-6.3.cvs/etc/gm/gm.tcl" line 640)
> >
> > when I tried to enter location mapset.
>
> This typically indicates a GDAL problem. What does
> g.region -p
> say?
>
> Markus

Hello Markus

I had already reinstalled gdal, but that didn't help.
I solved the problem as follows:

libgdal.so.1 was in /usr/local/lib/
I had to add the directory in /etc/ld.so.conf
and rerun "ldconfig".
Now Grass works again.

Thanks for your help.
Christine

-------- Original-Nachricht --------

Datum: Tue, 20 Nov 2007 22:04:08 +0100
Von: Markus Neteler <neteler@fbk.eu>
An: grass-user@lists.osgeo.org
Betreff: Re: [GRASS-user] cvs - error Ubuntu 7.10

Hello Christine,

so you have to fix the GDAL installation first. Without
that GRASS won't run at all.

Markus

On Tue, Nov 20, 2007 at 05:39:35PM +0100, Christine Sandmeier wrote:
> Hello Markus
>
> This is what g.region -p says:
>
> g.region: error while loading shared libraries: libgdal.so.1: cannot
open shared object file: No such file or directory
>
>
> Christine
>
>
>
> -------- Original-Nachricht --------
> > Datum: Tue, 20 Nov 2007 16:45:30 +0100
> > An: grass-user@lists.osgeo.org
> > Betreff: Re: [GRASS-user] cvs - error Ubuntu 7.10
>
> > On Tue, Nov 20, 2007 at 04:21:15PM +0100, Christine Sandmeier wrote:
> > > Hello
> > >
> > > I upgraded from Ubuntu 6.06 to 7.10 and since then I got
> > >
> > >
> > > child process exited abnormally
> > > Error in startup script: can't read "parts(w)": no such variable
> > > while executing
> > > "set $parts(w) [expr round($parts(w)/$parts(ewres))*$parts(ewres)]"
> > > (procedure "MapCanvas::zoom_gregion" line 16)
> > > 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 79)
> > > invoked from within
> > > "Gm::create"
> > > (procedure "main" line 30)
> > > invoked from within
> > > "main $argc $argv"
> > > (file "/usr/local/grass-6.3.cvs/etc/gm/gm.tcl" line 640)
> > >
> > > when I tried to enter location mapset.
> >
> > This typically indicates a GDAL problem. What does
> > g.region -p
> > say?
> >
> > Markus
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger