MacOSX GRASS errors: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
(more comments from http://lists.osgeo.org/pipermail/grass-user/2011-September/061971.html)
(+Yet unsolved: When using g.extension, I get "fatal error: grass/gis.h: No such file or directory")
Line 1: Line 1:
Q: Starting GRASS GIS on MacOSX, I get "bad cpu type in executable"
Q: Starting GRASS GIS on MacOSX, I get "bad cpu type in executable"


A: It looks like a macports problem (maybe homebrew also uses /opt/local?) with their Python. A guess is that their python is 64bit-only, and GRASS is trying to run python 32bit because it couldn't find a 64bit wxpython because 64bit wxpython isn't existing yet in the stable release.<br>
A: It looks like a macports problem (maybe ''homebrew'' also uses /opt/local?) with their Python. A guess is that their python is 64bit-only, and GRASS is trying to run python 32bit because it couldn't find a 64bit wxpython because 64bit wxpython isn't existing yet in the stable release.<br>
Work-around: Edit the file ".bash_profile" in your HOME directory and add therein:
Work-around: Edit the file ".bash_profile" in your HOME directory and add therein:


  export GRASS_PYTHON=/usr/bin/python2.6
  export GRASS_PYTHON=/usr/bin/python2.6
  export GRASS_PYTHONWX=/usr/bin/pythonw2.6
  export GRASS_PYTHONWX=/usr/bin/pythonw2.6
----
Q: When using g.extension, I get "fatal error: grass/gis.h: No such file or directory"
A: tbd


[[Category: FAQ]]
[[Category: FAQ]]
[[Category: Installation‏‎]]
[[Category: Installation‏‎]]

Revision as of 12:45, 6 July 2013

Q: Starting GRASS GIS on MacOSX, I get "bad cpu type in executable"

A: It looks like a macports problem (maybe homebrew also uses /opt/local?) with their Python. A guess is that their python is 64bit-only, and GRASS is trying to run python 32bit because it couldn't find a 64bit wxpython because 64bit wxpython isn't existing yet in the stable release.
Work-around: Edit the file ".bash_profile" in your HOME directory and add therein:

export GRASS_PYTHON=/usr/bin/python2.6
export GRASS_PYTHONWX=/usr/bin/pythonw2.6

Q: When using g.extension, I get "fatal error: grass/gis.h: No such file or directory"

A: tbd