[GRASS-dev] GRASS cvs for Mac compilation fails for OS X 10.4

William,

I just tried to install GRASS from the cvs. It fails on my OS X 10.4 machine because it is hard coded to look for x11r7 (with OS X 10.5) instead of x11r6. Can this be conditionalized to deal with 10.4 AND 10.5?

Michael


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-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

The install fails? Or it fails to run?

The install doesn't care anything about what version of X11 you have. Running is already conditionalized for the X11 version. What errors are you getting?

On Nov 17, 2007, at 12:55 AM, Michael Barton wrote:

William,

I just tried to install GRASS from the cvs. It fails on my OS X 10.4 machine because it is hard coded to look for x11r7 (with OS X 10.5) instead of x11r6. Can this be conditionalized to deal with 10.4 AND 10.5?

Michael

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

[Trillian] What are you supposed to do WITH a maniacally depressed robot?

[Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer...

- HitchHiker's Guide to the Galaxy

On 11/17/07 8:29 AM, "William Kyngesburye" <woklist@kyngchaos.com> wrote:

The install fails? Or it fails to run?

The install doesn't care anything about what version of X11 you have.
Running is already conditionalized for the X11 version. What errors
are you getting?

The compilation and install goes fine. It won't run wish. I did NOT install
a different TclTk, but am using the one I compiled from source several
months back, following directions in your README.

Here is the error.

/Applications/Grass/GRASS-6.3.app/Contents/MacOS/scripts/gis.m: line 17:
/Applications/Grass/GRASS-6.3.app/Contents/MacOS/bin/wish: No such file or
directory
/Applications/Grass/GRASS-6.3.app/Contents/MacOS/scripts/gis.m: line 17:
exec: /Applications/Grass/GRASS-6.3.app/Contents/MacOS/bin/wish: cannot
execute: No such file or directory

When I try to run wish, this is what I get

wish
dyld: Library not loaded: /usr/local/X11R7/lib/libX11.6.dylib
  Referenced from: /usr/local/lib/libtk8.4.dylib
  Reason: image not found
Trace/BPT trap

Michael

On Nov 17, 2007, at 12:55 AM, Michael Barton wrote:

William,

I just tried to install GRASS from the cvs. It fails on my OS X 10.4
machine because it is hard coded to look for x11r7 (with OS X 10.5)
instead of x11r6. Can this be conditionalized to deal with 10.4 AND
10.5?

Michael

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

[Trillian] What are you supposed to do WITH a maniacally depressed
robot?

[Marvin] You think you have problems? What are you supposed to do if
you ARE a maniacally depressed robot? No, don't try and answer, I'm
50,000 times more intelligent than you and even I don't know the
answer...

- HitchHiker's Guide to the Galaxy

__________________________________________
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-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Nov 17, 2007, at 9:41 AM, Michael Barton wrote:

Here is the error.

/Applications/Grass/GRASS-6.3.app/Contents/MacOS/scripts/gis.m: line 17:
/Applications/Grass/GRASS-6.3.app/Contents/MacOS/bin/wish: No such file or
directory
/Applications/Grass/GRASS-6.3.app/Contents/MacOS/scripts/gis.m: line 17:
exec: /Applications/Grass/GRASS-6.3.app/Contents/MacOS/bin/wish: cannot
execute: No such file or directory

When I try to run wish, this is what I get

wish
dyld: Library not loaded: /usr/local/X11R7/lib/libX11.6.dylib
Referenced from: /usr/local/lib/libtk8.4.dylib
Reason: image not found
Trace/BPT trap

Oh, that's bizarre. Nothing to do with Leopard, though. Things to check:

- Is there a wish, or any tcltk libraries, in the newly-installed GRASS app package?

- if not, were there any errors in the make (not install) stage? try make inside the macosx folder.

- where is your tcltk installed (from those many months ago)? /usr/local/tcltk, as in my instructions? And is this what you configured GRASS with? (just checking)

- is there really a /usr/local/bin/wish and /usr/local/lib/libtcl and libtk? Sounds like you may have installed some software that installed another copy of tcltk (which is broken because it's looking for /usr/local/X11R7).

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Time is an illusion - lunchtime doubly so."

- Ford Prefect

OK. Figured it out. But it needs to be fixed somewhere in the make systems I
think.

In both my previous compile (of a few weeks ago) and the one I tried last
night and today, a copy of wish8.4 is put into the $GISBASE/bin folder.

In my older version (which worked fine), apparently this is launched when
the GUI system is launched.

In the new version, it tries to launch a symlink named "wish" instead of the
embedded wish8.4. There is no such symlink and it tries to run another
symlink on my system that is NOT linked to the correct version of TclTk
(I'll fix that locally, but it should not affect GRASS).

When I created a symlink named "wish" for the embedded wish8.4 all works
well.

So what has changed? Something is calling wish instead of wish8.4, but I
don't know what.

Michael

On 11/17/07 9:24 AM, "William Kyngesburye" <woklist@kyngchaos.com> wrote:

On Nov 17, 2007, at 9:41 AM, Michael Barton wrote:

Here is the error.

/Applications/Grass/GRASS-6.3.app/Contents/MacOS/scripts/gis.m: line
17:
/Applications/Grass/GRASS-6.3.app/Contents/MacOS/bin/wish: No such
file or
directory
/Applications/Grass/GRASS-6.3.app/Contents/MacOS/scripts/gis.m: line
17:
exec: /Applications/Grass/GRASS-6.3.app/Contents/MacOS/bin/wish:
cannot
execute: No such file or directory

When I try to run wish, this is what I get

wish
dyld: Library not loaded: /usr/local/X11R7/lib/libX11.6.dylib
Referenced from: /usr/local/lib/libtk8.4.dylib
Reason: image not found
Trace/BPT trap

Oh, that's bizarre. Nothing to do with Leopard, though. Things to
check:

- Is there a wish, or any tcltk libraries, in the newly-installed
GRASS app package?

- if not, were there any errors in the make (not install) stage? try
make inside the macosx folder.

- where is your tcltk installed (from those many months ago)? /usr/
local/tcltk, as in my instructions? And is this what you configured
GRASS with? (just checking)

- is there really a /usr/local/bin/wish and /usr/local/lib/libtcl and
libtk? Sounds like you may have installed some software that
installed another copy of tcltk (which is broken because it's looking
for /usr/local/X11R7).

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Time is an illusion - lunchtime doubly so."

- Ford Prefect

__________________________________________
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-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Doh! I got a little carried away with a find-n-replace and messed up a sed replacement for the grass.sh script. Fixed in cvs. After recompile and install, you can delete that symlink for 'wish'.

On Nov 17, 2007, at 11:23 AM, Michael Barton wrote:

OK. Figured it out. But it needs to be fixed somewhere in the make systems I
think.

In both my previous compile (of a few weeks ago) and the one I tried last
night and today, a copy of wish8.4 is put into the $GISBASE/bin folder.

In my older version (which worked fine), apparently this is launched when
the GUI system is launched.

In the new version, it tries to launch a symlink named "wish" instead of the
embedded wish8.4. There is no such symlink and it tries to run another
symlink on my system that is NOT linked to the correct version of TclTk
(I'll fix that locally, but it should not affect GRASS).

When I created a symlink named "wish" for the embedded wish8.4 all works
well.

So what has changed? Something is calling wish instead of wish8.4, but I
don't know what.

Michael

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Time is an illusion - lunchtime doubly so."

- Ford Prefect

Great. Thanks.

I'm visting Stanford to give a talk. I just installed GRASS on 2 iMacs and 2
laptops in the Archaeology Center spatial analysis lab.

Trying to get it on a colleague's PC laptop. This is trickier.

Michael

On 11/17/07 11:07 AM, "William Kyngesburye" <woklist@kyngchaos.com> wrote:

Doh! I got a little carried away with a find-n-replace and messed up
a sed replacement for the grass.sh script. Fixed in cvs. After
recompile and install, you can delete that symlink for 'wish'.

On Nov 17, 2007, at 11:23 AM, Michael Barton wrote:

OK. Figured it out. But it needs to be fixed somewhere in the make
systems I
think.

In both my previous compile (of a few weeks ago) and the one I tried
last
night and today, a copy of wish8.4 is put into the $GISBASE/bin
folder.

In my older version (which worked fine), apparently this is launched
when
the GUI system is launched.

In the new version, it tries to launch a symlink named "wish"
instead of the
embedded wish8.4. There is no such symlink and it tries to run another
symlink on my system that is NOT linked to the correct version of
TclTk
(I'll fix that locally, but it should not affect GRASS).

When I created a symlink named "wish" for the embedded wish8.4 all
works
well.

So what has changed? Something is calling wish instead of wish8.4,
but I
don't know what.

Michael

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Time is an illusion - lunchtime doubly so."

- Ford Prefect

__________________________________________
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-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

I'm curious: are you using a bindist-created installer package? or building from source on each Mac? I haven't heard any feedback from anyone on the bindist feature (it's what I use it to create my binaries for download).

On Nov 17, 2007, at 12:10 PM, Michael Barton wrote:

Great. Thanks.

I'm visting Stanford to give a talk. I just installed GRASS on 2 iMacs and 2
laptops in the Archaeology Center spatial analysis lab.

Trying to get it on a colleague's PC laptop. This is trickier.

Michael

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence....

- the wisdom of Tarzan

I use bindist in several Macs with some success, actually one of them is working in
Leopard but I need to write the command gis.m on the terminal.

I'm curious: are you using a bindist-created installer package? or
building from source on each Mac? I haven't heard any feedback from
anyone on the bindist feature (it's what I use it to create my
binaries for download).

On Nov 17, 2007, at 12:10 PM, Michael Barton wrote:

> Great. Thanks.
>
> I'm visting Stanford to give a talk. I just installed GRASS on 2
> iMacs and 2
> laptops in the Archaeology Center spatial analysis lab.
>
> Trying to get it on a colleague's PC laptop. This is trickier.
>
> Michael

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Mon Dieu! but they are all alike. Cheating, murdering, lying,
fighting, and all for things that the beasts of the jungle would not
deign to possess - money to purchase the effeminate pleasures of
weaklings. And yet withal bound down by silly customs that make them
slaves to their unhappy lot while firm in the belief that they be the
lords of creation enjoying the only real pleasures of existence....

- the wisdom of Tarzan

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

--
******************************************************
Dr. Agustín Diez Castillo
Departament de Prehistòria i Arqueologia
Fundació General Universitat de València
Phone: +34 963 86 42 42
Avda. Blasco Ibañez, 28 Fax: +34 963 86 42 34
València 46010
******************************************************

On Nov 17, 2007, at 12:54 PM, Agustin Diez Castillo wrote:

I use bindist in several Macs with some success,

Some success - were there problems then?

actually one of them is working in
Leopard

Do you mean: generating the installer on Tiger and installing on Leopard? That should work. The only thing to watch out for is that on Leopard you should NOT set DISPLAY - the Terminal startup magic takes care of this, and setting it yourself will break X displays and the GUI.

but I need to write the command gis.m on the terminal.

So, the GUI is not starting automatically?

I'm curious: are you using a bindist-created installer package? or
building from source on each Mac? I haven't heard any feedback from
anyone on the bindist feature (it's what I use it to create my
binaries for download).

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"

- The Ruler of the Universe

On 11/17/07 11:30 AM, "William Kyngesburye" <woklist@kyngchaos.com> wrote:

I'm curious: are you using a bindist-created installer package? or
building from source on each Mac? I haven't heard any feedback from
anyone on the bindist feature (it's what I use it to create my
binaries for download).

I just put your most recent binaries on them (Sept. I think). I didn't have
much time. Everyone is very happy though.

Michael

On Nov 17, 2007, at 12:10 PM, Michael Barton wrote:

Great. Thanks.

I'm visting Stanford to give a talk. I just installed GRASS on 2
iMacs and 2
laptops in the Archaeology Center spatial analysis lab.

Trying to get it on a colleague's PC laptop. This is trickier.

Michael

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Mon Dieu! but they are all alike. Cheating, murdering, lying,
fighting, and all for things that the beasts of the jungle would not
deign to possess - money to purchase the effeminate pleasures of
weaklings. And yet withal bound down by silly customs that make them
slaves to their unhappy lot while firm in the belief that they be the
lords of creation enjoying the only real pleasures of existence....

- the wisdom of Tarzan

__________________________________________
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-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Nov 17, 2007, at 12:54 PM, Agustin Diez Castillo wrote:

> I use bindist in several Macs with some success,

No until now, but I haven't used it a lot.

Some success - were there problems then?

> actually one of them is working in
> Leopard

Do you mean: generating the installer on Tiger and installing on
Leopard? That should work. The only thing to watch out for is that
on Leopard you should NOT set DISPLAY - the Terminal startup magic
takes care of this, and setting it yourself will break X displays and
the GUI.

I will check that.

> but I need to write the command gis.m on the terminal.
>
So, the GUI is not starting automatically?

Yes, the GUI is not starting automatically.

>
>> I'm curious: are you using a bindist-created installer package? or
>> building from source on each Mac? I haven't heard any feedback from
>> anyone on the bindist feature (it's what I use it to create my
>> binaries for download).
>>
>>

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"This is a question about the past, is it? ... How can I tell that the
past isn't a fiction designed to account for the discrepancy between
my immediate physical sensations and my state of mind?"

- The Ruler of the Universe

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

--
******************************************************
Dr. Agustín Diez Castillo
Departament de Prehistòria i Arqueologia
Fundació General Universitat de València
Phone: +34 963 86 42 42
Avda. Blasco Ibañez, 28 Fax: +34 963 86 42 34
València 46010
******************************************************

On Nov 18, 2007, at 11:52 AM, Agustin Diez Castillo wrote:

but I need to write the command gis.m on the terminal.

So, the GUI is not starting automatically?

Yes, the GUI is not starting automatically.

Hm, if it doesn't start automatically, but will start manually, then the DISPLAY setting is probably OK - it wouldn't even start manually if this was wrong. It may simply be defaulting to 'text' and you need to change your GRASS_GUI setting:

g.gisenv set="GRASS_GUI=tcltk"

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

[Trillian] What are you supposed to do WITH a maniacally depressed robot?

[Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer...

- HitchHiker's Guide to the Galaxy