0

I finally broke down and bought Neteler and Mitasova's book, Open Source GIS: A GRASS GIS Approach, because I need to learn command-line GRASS. On trying to work through the book's examples, I'm finding that there may be a problem with my GRASS installation, or more likely with the installation of the tk framework. Here's the code and the error message that I'm getting:

gregory@Gregorys-MacBook> gis.m
~ gregory@Gregorys-MacBook> /usr/local/bin/wish: line 2: /usr/local/bin/../../../Library/Frameworks/Tk.framework/Versions/8.5/Resources/Wish.app/Contents/MacOS/Wish: No such file or directory

I installed GRASS and its dependencies using the binary installers from KyngChaos, so I'm pretty confident that the TK framework got installed correctly, but the error message seems to indicate otherwise. Also, I don't know how to interpret the section of the path in the error message that reads "/../../../".

Can anyone suggest a fix for this?

1 Answer 1

2

The problem is that the book is rather old and meanwhile, the GUI written in Tk (gis.m and d.m TCL/TK-based GUI frontend) was replaced by a new GUI, written in wxPython (wxGUI wxPython-based GUI frontend) (see [GRASS GUI1)

As you use the KyngChaos version, you start GRASS GIS by:

  • double clicking GRASS-6.4 application
  • or from the shell (Terminal.app) using

enter image description here

It is the same thing because the application calls this script grass.sh which open the GRASS shell and the wxGUI wxPython-based GUI frontend:

enter image description here

If you want to use the old TCL/TK-based GUI frontend (unsupported now)

  • use gis.m in the GRASS shell (the easy way):

enter image description here

enter image description here

  • or change the value of GRASS_GUI in the file .grassrc6 in your home directory:

    GRASS_GUI: wxpython to GRASS_GUI: tcltk

2
  • Thanks, Gene. I see no reason to use the older unsupported GUI. I'll just have to figure out how to deal with aspects of the book that are out of date. It is very frustrating to pay $85 for an eBook that is out of date, however.
    – Gregory
    Commented Sep 10, 2013 at 16:10
  • 2
    I learn GRASS with this book. It gives you the basics With the exception of the GUI, the processing operations remain valid.
    – gene
    Commented Sep 10, 2013 at 16:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.