[GRASSLIST:4041] Re: Installation Grass5.7 problem

Mike Francis Mike at mikhul1.f2s.com
Wed Jul 28 05:04:21 EDT 2004


Hamish,
Thank you for your time. I've gone through your suggestions and no luck I'm
afraid. I'll copy the GRASSLIST in on this to keep everyone up to speed.
Any other ideas would be very much appreciated.
Mike


om>
Cc: <GRASSLIST at baylor.edu>
Sent: Wednesday, July 28, 2004 1:04 AM
Subject: Re: [GRASSLIST:4024] Installation Grass5.7 problem


> > Following installation I am receiving the following error message:
> >
> > "couldn't execute "C:\cygwin\bin\g.gisenv": no such file or directory
> > .... Is this something to do with the CYGWIN X monitor?
>
>
> It looks like grass is not installed correctly on your computer.
>
> g.gisenv is a core grass module (it manages the GIS enviroment settings)
> It's likely that other stuff is missing too, just that g.gisenv is the
> first internal grass program it tries.
>
> The g.gisenv program should be located in:
> /usr/local/grass57_[...]/bin/ -- Yes
> and
> /usr/local/grass57_[...]/etc/bin/cmd/ -- Yes
>
> 'grass57' should be in /usr/local/bin/ -- as a shortcut pointing to
C:\cygwin\usr\local\bin\grass-5.7.0-i686-pc-cygwin-24_06_2004
>
> and when finally running GRASS, "echo $PATH" should show
> /usr/local/grass57_[...]/bin/ as the first entry.
- GRASS 5.7.0:~ > echo
$PATH
/usr/local/grass5.7.0-i686-pc-cygwin-24_06_2004/bin:/usr/local/grass5.7.0-i6
86-pc-cygwin-24_06_2004/scripts:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/program
files/Java/j2re1.4.2_04/bin:/cygdrive/c/JavaSpeech/ibmjs/lib:
GRASS 5.7.0:~ >

>
>
> I take it you are starting grass with:
> cygwin$ startx --Yes
> cygwin-xterm$ grass57 -- Yes (my actual prompt is: $ grass57)
>
Then I am into the usual GRASS5.7.0 startup screen where my Location is
spearfish; Mapset is PERMANENT; and Database is /data/ -- where the actual
physical location is c:\cygwin\data\spearfish

Hitting esc/enter produces the usual Grass Welcome screen.

Then, entering 'tcltkgrass $' attempts to start up the GRASS graphical
interface but then fails with the following error message:
---------------------------
Error in startup script
---------------------------
window name "loading" already exists in parent
    while executing
"label .loading -text {Loading ...}"
    (file
"/usr/local/grass5.7.0-i686-pc-cygwin-24_06_2004/tcltkgrass/main/gui.tcl"
line 1881)
    invoked from within
"source $env(TCLTKGRASSBASE)/main/gui.tcl"
    invoked from within
"if [catch {source $env(TCLTKGRASSBASE)/main/gui.tcl}] {
    set env(TCLTKGRASSBASE) $env(GISBASE)/tcltkgrass
    source $env(TCLTKGRASSBASE)/main/gui...."
    (file "/usr/local/grass5.7.0-i686-pc-cygwin-24_06_2004/bin/tcltkgrass"
line 26)
---------------------------
OK
---------------------------

tcltkgrass & -- Done


--
> ?
>
> make sure the path inside the grass57 script is correct.
> (/usr/local/bin/grass57 is just a text file)

This is the content of /usr'local/bin/grass57

#! /bin/sh

############################################################################
#

#

# $Id: grass.src,v 1.4 2003/12/08 17:18:54 paul Exp $

#

# MODULE: GRASS Initialization

# AUTHOR(S): Justin Hickey - Thailand - jhickey at hpcc.nectec.or.th

# PURPOSE: The source file for this shell script is in

# src/general/init/grass.src and is the grass startup script. It

# requires a source file because the definition of GISBASE

# is not known until compile time and is substituted from the

# Gmakefile. The script also sets the default user interface and

# parses the command line options for interface and help flags.

# Any remaining options are passed to Init.sh.

# COPYRIGHT: (C) 2000 by the GRASS Development Team

#

# This program is free software under the GNU General Public

# License (>=v2). Read the file COPYING that comes with GRASS

# for details.

#

############################################################################
#

trap "echo 'User break!' ; exit" 2 3 9 15

# Set the GISBASE variable

GISBASE='/usr/local/grass5.7.0-i686-pc-cygwin-24_06_2004'

export GISBASE

exec "$GISBASE/etc/Init.sh" "$@"

And this is the actual physical path to GISBASE:
C:\cygwin\usr\local\grass5.7.0-i686-pc-cygwin-24_06_2004
>
> If that doesn't work, just try reinstalling. Done twice with no luck.
>
> Did you install from the "/" directory in cygwin? I think it expects
> that. Yes
>
>
>
> I don't think it has anything to do with X.
>
>
>
> Hamish

Thanks again for your time,
Mike

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Dr. Michael Francis Ph.D (Lancaster); M.Sc (Lancaster); M.Sc (London); BA
Hons (CNAA) MBCS MCIT MIHT
Senior Lecturer in Information Systems
Director, Merseyside Regional Research Laboratory,
Liverpool John Moores University,
Liverpool,
England

Telephone 079 600 600 72
Web Page http://www.mikhul1.f2s.com
>




More information about the grass-user mailing list