On Dec 18, 2008, at 4:33 PM, <grass-user-request@lists.osgeo.org> wrote:
Date: Thu, 18 Dec 2008 12:46:05 -0700
From: Brandon M. Gabler <bgabler@email.arizona.edu>
Subject: [GRASS-user] most recent kyngesburye build for osx tiger
error
To: GRASS-User GRASS-User <grass-user@lists.osgeo.org>
Cc: William Kyngesburye <kyngchaos@kyngchaos.com>
Message-ID: <D967054D-3A05-4C06-8EC8-0BCBC44E627A@email.arizona.edu>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Greetings all,
I recently installed Grass 6.3.0-3-Tig on my mac running Tiger, after
updating all necessary frameworks listed by William Kyngesburye.
Grass seems to start normally (though with lots of text at startup in
the terminal window, included at the end of this email), and it opens
the standard startup screen. I click Enter Grass, it spins a bit,
then this error in an X11 window: "Error setting region (Problem with
g.region?): child killed: trace trap", folled by this text in the
terminal window after I click the 'ok' button on the error window:
GRASS 6.3.0 (Brandon):~ > 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
...
One of my students just tried 6.4SVN and libraries today.
Let the GUI crash. Then from the command line, check g.region by typing
g.region -gp
Probably you have a gdal problem. It will say so in the error message, if this is the case.
Here are a couple things in general.
1) If you are using 6.4 (I know, you said 6.3.0 for Tiger but stay with me), don't forget that you need to install TclTk separately now. Get it from Active States. William provides a link on his frameworks page. It's painless.
2) We just found a problem with a gdal framework (this might be your problem). The last version 1.5 at least is compiled with a PostgreSQL dependency. It needs to be recompiled without Postgres. I'm not sure about 1.6 but wouldn't be surprised if it is accidently the same.
Michael
On Dec 18, 2008, at 7:56 PM, Michael Barton wrote:
2) We just found a problem with a gdal framework (this might be your problem). The last version 1.5 at least is compiled with a PostgreSQL dependency. It needs to be recompiled without Postgres. I'm not sure about 1.6 but wouldn't be surprised if it is accidently the same.
Damn. Missed a bit of post-processing in the 1.5 build. 1.6 is OK.
If you have the Xcode tools installed, you can fix it with this in a Terminal (all one line):
sudo install_name_tool -change /usr/local/pgsql/lib/libpq.5.dylib @loader_path/Libraries/libpq.dylib /Library/Frameworks/GDAL.framework/Versions/1.5/GDAL
I'll package up a new installer ASAP.
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
Earth: "Mostly harmless"
- revised entry in the HitchHiker's Guide to the Galaxy
Thanks much William. Easy to miss this kind of thing. I want to reiterate how great it is to have your frameworks. Thanks for all the excellent work that makes GRASS accessible to Mac users.
Michael
____________________
C. Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>
On Dec 18, 2008, at 8:00 PM, William Kyngesburye wrote:
On Dec 18, 2008, at 7:56 PM, Michael Barton wrote:
2) We just found a problem with a gdal framework (this might be your problem). The last version 1.5 at least is compiled with a PostgreSQL dependency. It needs to be recompiled without Postgres. I'm not sure about 1.6 but wouldn't be surprised if it is accidently the same.
Damn. Missed a bit of post-processing in the 1.5 build. 1.6 is OK.
If you have the Xcode tools installed, you can fix it with this in a Terminal (all one line):
sudo install_name_tool -change /usr/local/pgsql/lib/libpq.5.dylib @loader_path/Libraries/libpq.dylib /Library/Frameworks/GDAL.framework/Versions/1.5/GDAL
I'll package up a new installer ASAP.
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
Earth: "Mostly harmless"
- revised entry in the HitchHiker's Guide to the Galaxy
On Dec 18, 2008, at 9:40 PM, Michael Barton wrote:
Thanks much William. Easy to miss this kind of thing. I want to reiterate how great it is to have your frameworks. Thanks for all the excellent work that makes GRASS accessible to Mac users.
You're very much welcome 
Damn. Missed a bit of post-processing in the 1.5 build. 1.6 is OK.
I'll package up a new installer ASAP.
New GDAL 1.5.3 framework now available to fix the postgres linking issue. Brandon, see if this fixes the GRASS GUI for you (I can't test Tiger right now).
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
"Oh, look, I seem to have fallen down a deep, dark hole. Now what does that remind me of? Ah, yes - life."
- Marvin
Thanks a bunch all who wrote back - I installed the new GDAL 1.5.3 from Kyngesburye's site, reinstalled GRASS, fired right up and successfully loaded some maps. All is well with the world. So, this does indeed fix the GRASS GUI. And since it worked, I did not perform further investigation into the actual problem (checking g.region from terminal, etc.). If you're curious, I could roll back GDAL, but I don't think I actually want to do that... 
I still get that same garble in the startup phase, but without any resulting problems, so I'm not going to mess with anything at this point.
Also, I'll ditto the same thanks issued by Michael regarding your builds. Not only is it nice to have all of the frameworks easily accessible all from your page by clicking in order down the site, but you've always been quick in addressing problems we have. Thanks again!
Best,
Brandon
On Dec 18, 2008, at 9:38 PM, William Kyngesburye wrote:
On Dec 18, 2008, at 9:40 PM, Michael Barton wrote:
Thanks much William. Easy to miss this kind of thing. I want to reiterate how great it is to have your frameworks. Thanks for all the excellent work that makes GRASS accessible to Mac users.
You're very much welcome 
Damn. Missed a bit of post-processing in the 1.5 build. 1.6 is OK.
I'll package up a new installer ASAP.
New GDAL 1.5.3 framework now available to fix the postgres linking issue. Brandon, see if this fixes the GRASS GUI for you (I can't test Tiger right now).
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
"Oh, look, I seem to have fallen down a deep, dark hole. Now what does that remind me of? Ah, yes - life."
- Marvin