<div dir="ltr">Hi,<br><br>Anna and I are trying to compile GRASS 7 on Mac OS 10.8. Although there were some problems we were able to compile it.<br><br>But than we were not able to start GRASS because initialization ended with the error message about missing X Window system. This comes from init/grass.py where it checks for DISPLAY variable. The variable is not set. Do we need it to test it for GRASS7 and Mac OS? Setting to any value (e.g., export DISPLAY=0) solved the problem.<br>
<br>The second error appears when we try to launch GUI from command line using g.gui (i.e., the error does not happen during GRASS launch):<br><br> wxgui.py: posix_spawn: /Users/...wxpython/wxgui.py2.7: No such file or directory<br>
<br>Changing the second parameter of G_spawn_ex to a 'python' instead of a 'python source' solved the problem:<br><br>Index: g.gui/main.c<br>===================================================================<br>
--- g.gui/main.c (revision 57519)<br>+++ g.gui/main.c (working copy)<br>@@ -113,12 +113,13 @@<br><br> if (strcmp(type->answer, "wxpython") == 0) {<br> sprintf(progname, "%s/etc/gui/wxpython/wxgui.py", G_gisbase());<br>
if (rc_file->answer) {<br>- G_spawn_ex(getenv("GRASS_PYTHON"), progname, progname,<br>+ G_spawn_ex(getenv("GRASS_PYTHON"), getenv("GRASS_PYTHON"), progname,<br>
"--workspace", rc_file->answer, SF_BACKGROUND, NULL);<br> }<br> else {<br>- G_spawn_ex(getenv("GRASS_PYTHON"), progname, progname,<br>+ G_spawn_ex(getenv("GRASS_PYTHON"), getenv("GRASS_PYTHON"), progname,<br>
SF_BACKGROUND, NULL);<br> }<br> }<div><br></div><div>We don't understand the code in spawn.c and there are even no comments... so we are lost.</div><div><br></div><div>Anna and Vaclav</div>
</div>