Last change: 2005/8/26
GRASS version: 6.0.1
GRASS
Make sure you have the latest GRASS 6.0 source. GRASS 6.0.0 requires a few patches that are not rewqired in later versions.
In a Terminal type:
$ cd path_to_folder_containing_grass_source_tar_gz
$ tar -zxf grass-6.0.1.tar.gz
One change you can make if you like. You can enable GRASS to write LZW compressed TIFFs (reading them requires no changes). This is independent of r.out.gdal's ability to export LZW compressed TIFFs. In raster/r.out.tiff/r.out.tiff.c, change line 95 to read:
compopt->options = "none,packbit,deflate,lzw";
and before line 123 add:
else if (strncmp(compopt->answer,"lzw",7) == 0) compression = COMPRESSION_LZW;
Then you're ready for configure:
$ cd grass-6.0.1
$ ./configure --enable-sysv --with-includes=/usr/X11R6/include --with-libs=/usr/X11R6/lib --with-freetype --with-freetype-includes=/usr/X11R6/include/freetype2 --with-tcltk-includes=/usr/X11R6/include --with-tcltk-libs=/usr/X11R6/lib --with-gdal=/usr/local/bin/gdal-config --with-proj --with-x --with-cxx --with-glw --with-motif --without-odbc --enable-shared
If you installed PostGreSQL, add this to the configure line (make sure there is a space after the last option and this):
--with-postgres-includes=/usr/local/pgsql/include --with-postgres-libs=/usr/local/pgsql/lib
otherwise add this:
--without-postgres
And do it:
$ make
$ sudo make install
Depending on your Mac's power, make could take up to an hour or more to build, so take a break, read a book, have lunch, go for a walk, multitask...
Note: There is a setting for when applications crash - whether to display some sort of notice, a crash report for Apple or nothing. This can be set by TinkerTool and other utilities. I can't remember what the default from Apple is, but if a display is set, when running configure, you will probably get a crash dialog, you can just cancel/close this.
Also, GRASS building emits some beeps. Don't worry, just ignore them, your Mac isn't about to explode. Just some harmless warning/error (something about fake mapset not found).