[GRASS-user] Problems compiling Grass 6.4 and Grass addons under MacOS
Markus Neteler
neteler at osgeo.org
Wed May 30 02:23:30 PDT 2012
On Wed, May 30, 2012 at 5:52 AM, David Montoya <jdmonto0 at gmail.com> wrote:
> I installed Grass using the files from kyngchaos and I need to compile some
> addons.
Please tell us which.
> I tried to install them by two ways, using g.extensions but it
> doesn't work, and through modbuild following the instruction but I get the
> following error:
> My Os is MacOS Lion 10.7
>
> MacBook-Pro-de-Jose:r.stream.extract jdmonto0$ make GRASS_HOME='~/modbuild'
> GRASS_APP='/Applications/GRASS-6.4.app'
> ../../include/Make/Module.make:25: warning: overriding commands for target
> `install'
> ../../include/Make/Rules.make:90: warning: ignoring old commands for target
> `install'
> gcc -I~/modbuild/dist.i386-apple-darwin11.3.0/include
> -I/Applications/GRASS-6.4.app/Contents/MacOS/include -Os -fexceptions
> -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk
> -I/Library/Frameworks/GDAL.framework/Versions/1.9/Headers
> -I/Library/Frameworks/GEOS.framework/Versions/3/unix/include
> -DPACKAGE=\""grassmods"\" -I~/modbuild/dist.i386-apple-darwin11.3.0/include
> -I/Applications/GRASS-6.4.app/Contents/MacOS/include -o
> OBJ.i386-apple-darwin11.3.0/close.o -c close.c
> In file included from close.c:1:
> /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gis.h:24:19: error:
> stdio.h: No such file or directory
This is a fundamental system file. On my Linux box, it is in a
package called "glibc-headers". No idea how that's called on MacOSX.
The lack of this file causes all subsequent errors.
...
> I tried also to compile Grass by my own, but I get some errors when I run
> the command make. The configuration that I use is as follow:
>
> ./configure \
...
> At this point, everything seems to be ok, but when I run make, I get this
> error:
...
> Errors in:
> /Users/jdmonto0/Downloads/grass/grass64_release/lib/iostream
> /Users/jdmonto0/Downloads/grass/grass64_release/gui/wxpython
> /Users/jdmonto0/Downloads/grass/grass64_release/raster/r.terraflow
> /Users/jdmonto0/Downloads/grass/grass64_release/visualization/nviz
> --
> In case of errors please change into the directory with error and run
> 'make'.
--> please do this and report the errors.
Markus
More information about the grass-user
mailing list