[GRASSweb-list]william: web/platforms/macgrass gdal.php,1.3,1.4 grass.php,1.3,1.4 grassalt.php,1.3,1.4 grassinstall.php,1.6,1.7 postgresql.php,1.3,1.4

grass at intevation.de grass at intevation.de
Fri Aug 26 10:20:47 EDT 2005


Author: william

Update of /grassrepository/web/platforms/macgrass
In directory doto:/tmp/cvs-serv1048

Modified Files:
	gdal.php grass.php grassalt.php grassinstall.php 
	postgresql.php 
Log Message:
updated instructions for GRASS 6.0.1 and other supporting library updates

Index: gdal.php
===================================================================
RCS file: /grassrepository/web/platforms/macgrass/gdal.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- gdal.php	23 Jul 2005 04:44:19 -0000	1.3
+++ gdal.php	26 Aug 2005 14:20:45 -0000	1.4
@@ -15,18 +15,18 @@
 <hr width="100%" noshade="noshade" size="3">
 <h1>GRASS GIS on Mac OS X</h1>
 <h2>GDAL/OGR</h2>
-<p><i>Last change: 2005/7/18</i></p>
+<p><i>Last change: 2005/8/28</i></p>
 <hr width="100%" noshade="noshade" size="3">
 </center>
 
 <?php include("macgrass_menu.inc"); ?>
 
-<p><b>GDAL version:</b> 1.2.6<br>
+<p><b>GDAL version:</b> 1.3.0<br>
 <a href="http://www.gdal.org/">gdal.org</a></p>
 
 <p>Almost there!</p>
 
-<p>There are two options to install GDAL, one being a bit tricky.  Without GRASS raster support, MapServer can't read GRASS rasters, and GRASS can't use GDAL to export rasters (this is because it uses GDAL utilities to convert the rasters) tho it can use GDAL to read raster data and can still export rasters with other r.out.* commands.  With GRASS support, MapServer can read GRASS rasters, and GRASS can use GDAL for both import and export.</p>
+<p>There are two options to install GDAL, one being a bit tricky.  Without GRASS raster support, MapServer can't read GRASS rasters, and GRASS can't use GDAL to export rasters (this is because it uses GDAL utilities to convert the rasters), but it can use GDAL to read raster data and can still export rasters with other r.out.* commands.  With GRASS support, MapServer can read GRASS rasters, and GRASS can use GDAL for both import and export.</p>
 
 <p>The simplest is without GRASS raster support.  Just go ahead and install it without the grass configure option.</p>
 
@@ -43,13 +43,8 @@
 <p>So, here's the gorey details.  In a Terminal type:</p>
 
 <blockquote><code>$ cd <i>path_to_folder_containing_gdal_source_tar_gz</i><br>
-$ tar -zxf gdal-1.2.6.tar.gz</code></blockquote>
-
-<p>One patch, to fix the static-proj option.  Edit <code>configure</code>.  Simply find all occurences of <code>with_static_proj4/src</code> and replace them with <code>with_static_proj4/lib</code>.</p>
-
-<p>Then:</p>
-
-<blockquote><code>$ cd gdal-1.2.6<br>
+$ tar -zxf gdal-1.3.0.tar.gz<br>
+$ cd gdal-1.3.0<br>
 $ ./configure --mandir=/usr/local/share/man --without-python --with-threads --with-static-proj4=/usr/local --with-libtiff=/usr/local --with-geotiff=/usr/local --with-jpeg=/usr/local --with-gif=/usr/local --with-png=/usr/local --with-jasper=/usr/local</code></blockquote>
 
 <p>If you installed any of these optional packages, add to the configure line (make sure you hold off on the GRASS option the first time you build GDAL), all options separated by spaces:</p>
@@ -79,8 +74,8 @@
 <td><code> --with-geos=/usr/local/bin/geos-config</code></td></tr>
 
 <tr valign="top"><td>GRASS libraries</td>
-<td><code> --with-grass=/usr/local/grass-6.0.0</code><br>
-(it may be slightly different if you use a CVS build of GRASS)</td></tr>
+<td><code> --with-grass=/usr/local/grass-6.0.1</code><br>
+(it will be slightly different if you use a CVS build of GRASS)</td></tr>
 
 </table>
 

Index: grass.php
===================================================================
RCS file: /grassrepository/web/platforms/macgrass/grass.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- grass.php	23 Jul 2005 04:44:19 -0000	1.3
+++ grass.php	26 Aug 2005 14:20:45 -0000	1.4
@@ -15,33 +15,23 @@
 <hr width="100%" noshade="noshade" size="3">
 <h1>GRASS GIS on Mac OS X</h1>
 <h2>GRASS</h2>
-<p><i>Last change: 2005/7/18</i></p>
+<p><i>Last change: 2005/8/26</i></p>
 <hr width="100%" noshade="noshade" size="3">
 </center>
 
 <?php include("macgrass_menu.inc"); ?>
 
-<p><b>GRASS version:</b> 6.0.0<br>
+<p><b>GRASS version:</b> 6.0.1<br>
 <a href="http://grass.itc.it/">GRASS</a></p>
 
+<p>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.</p>
+
 <p>In a Terminal type:</p>
 
 <blockquote><code>$ cd <i>path_to_folder_containing_grass_source_tar_gz</i><br>
-$ tar -zxf grass-6.0.0.tar.gz</code></blockquote>
-
-<p>A few patches if you are building on Mac OS X Tiger (GRASS 6.0.0 only!  hopefully it will be fixed in 6.0.1): edit lib/gmath/numerical.h.  Delete line 47.  There is also a line 12 in imagery/i.cca/globals.h to delete.  And in raster/r.grow2/main.c, delete lines 11-14 (the abs() function).  You're out of luck for r.terraflow in Tiger, the patch necessary is a bit too involved (I just waited until it was fixed in CVS).  Maybe that fix will make it into 6.0.1.</p>
-
-<p>One patch you must do. (Still hasn't been fixed with the 6.0.0 release!)  It seems the 6.0 libraries build with the embedded lib path pointing to the source copies.  In most cases this isn't a big deal, but if you build inside your home/Documents folder, or other similarly restricted folder, MapServer won't run if the patched GDAL + GRASS is used.  So, here's what to do in configure.</p>
-
-<p>Edit configure.  Around line 2200 find a block that starts with <code>Rhapsody-*|Darwin-*)</code> (it's the first one in the file).  Change the SHLIB_LD line to:</p>
-
-<blockquote><code>SHLIB_LD="cc -dynamiclib -flat_namespace -compatibility_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -current_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -install_name \${INST_DIR}/lib/lib\${LIB_NAME}\${SHLIB_SUFFIX}"</code></blockquote>
-
-<p>Also, make sure the SHLIB_CFLAGS line says:</p>
-
-<blockquote><code>SHLIB_CFLAGS="-fno-common"</code></blockquote>
+$ tar -zxf grass-6.0.1.tar.gz</code></blockquote>
 
-<p>Another change you can make if you like.  If you installed libtiff with LZW support, 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:</p>
+<p>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:</p>
 
 <pre>compopt->options        = "none,packbit,deflate,lzw";</pre>
 
@@ -52,8 +42,7 @@
 
 <p>Then you're ready for configure:</p>
 
-<blockquote><code>$ cd grass-6.0.0<br>
-$ export CFLAGS=-D_FILE_OFFSET_BITS=64<br>
+<blockquote><code>$ cd grass-6.0.1<br>
 $ ./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</code></blockquote>
 
 <p>If you installed PostGreSQL, add this to the configure line (make sure there is a space after the last option and this):</p>
@@ -73,7 +62,7 @@
 
 <p>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.</p>
 
-<p>Also, GRASS building emits a lot of 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).</p>
+<p>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).</p>
 
 <hr>
 <div align="right">&copy; 2003-2005 GRASS Development Team<br>

Index: grassalt.php
===================================================================
RCS file: /grassrepository/web/platforms/macgrass/grassalt.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- grassalt.php	23 Jul 2005 04:44:19 -0000	1.3
+++ grassalt.php	26 Aug 2005 14:20:45 -0000	1.4
@@ -15,33 +15,23 @@
 <hr width="100%" noshade="noshade" size="3">
 <h1>GRASS GIS on Mac OS X</h1>
 <h2>GRASS Alternate</h2>
-<p><i>Last change: 2005/7/22</i></p>
+<p><i>Last change: 2005/8/26</i></p>
 <hr width="100%" noshade="noshade" size="3">
 </center>
 
 <?php include("macgrass_menu.inc"); ?>
 
-<p><b>GRASS version:</b> 6.0.0<br>
+<p><b>GRASS version:</b> 6.0.1<br>
 <a href="http://grass.itc.it/">GRASS</a></p>
 
+<p>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.</p>
+
 <p>In a Terminal type:</p>
 
 <blockquote><code>$ cd <i>path_to_folder_containing_grass_source_tar_gz</i><br>
-$ tar -zxf grass-6.0.0.tar.gz</code></blockquote>
-
-<p>A few patches if you are building on Mac OS X Tiger (GRASS 6.0.0 only!  hopefully it will be fixed in 6.0.1): edit lib/gmath/numerical.h.  Delete line 47.  There is also a line 12 in imagery/i.cca/globals.h to delete.  And in raster/r.grow2/main.c, delete lines 11-14 (the abs() function).  You're out of luck for r.terraflow in Tiger, the patch necessary is a bit too involved (I just waited until it was fixed in CVS).  Maybe that fix will make it into 6.0.1.</p>
-
-<p>One patch you must do. (Still hasn't been fixed with the 6.0.0 release!)  It seems the 6.0 libraries build with the embedded lib path pointing to the source copies.  In most cases this isn't a big deal, but if you build inside your home/Documents folder, or other similarly restricted folder, MapServer won't run if the patched GDAL + GRASS is used.  So, here's what to do in configure.</p>
-
-<p>Edit configure.  Around line 2200 find a block that starts with <code>Rhapsody-*|Darwin-*)</code> (it's the first one in the file).  Change the SHLIB_LD line to:</p>
-
-<blockquote><code>SHLIB_LD="cc -dynamiclib -flat_namespace -compatibility_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -current_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -install_name \${INST_DIR}/lib/lib\${LIB_NAME}\${SHLIB_SUFFIX}"</code></blockquote>
-
-<p>Also, make sure the SHLIB_CFLAGS line says:</p>
-
-<blockquote><code>SHLIB_CFLAGS="-fno-common"</code></blockquote>
+$ tar -zxf grass-6.0.1.tar.gz</code></blockquote>
 
-<p>Another change you can make if you like.  If you installed libtiff with LZW support, 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:</p>
+<p>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:</p>
 
 <pre>compopt->options        = "none,packbit,deflate,lzw";</pre>
 
@@ -50,16 +40,9 @@
 <pre>	else if (strncmp(compopt->answer,"lzw",7) == 0)
 		compression = COMPRESSION_LZW;</pre>
 
-<p>To use the Graphics Libs and GIS Libs packages for dependencies, a couple extra patches are needed.</p>
-
-<p>[bug #3104] Edit <code>lib/ogsf/makefile</code>.  Add <code>$(TIFFLIBPATH)</code> before <code>$(TIFFLIB)</code> in the EXTRA_LIBS line at the top.</p>
-
-<p>[bug #3105] Edit <code>visualization/nviz/src/makefile</code>.  Add <code>$(TIFFLIBPATH)</code> before <code>-ltiff</code> at the very end of the file.</p>
-
 <p>Then you're ready for configure (this is a very long configure, so it's broken up into two pieces):</p>
 
-<blockquote><code>$ cd grass-6.0.0<br>
-$ export CFLAGS=-D_FILE_OFFSET_BITS=64<br>
+<blockquote><code>$ cd grass-6.0.1<br>
 $ ./configure --enable-sysv --with-freetype --with-freetype-includes="/usr/local/graphicslibs/include/freetype2 /usr/local/graphicslibs/include" --with-freetype-libs=/usr/local/graphicslibs/lib --with-gdal=/usr/local/gislibs/bin/gdal-config --with-proj --with-proj-includes=/usr/local/gislibs/include --with-proj-libs=/usr/local/gislibs/lib --with-jpeg-includes=/usr/local/graphicslibs/include --with-jpeg-libs=/usr/local/graphicslibs/lib --with-png-includes=/usr/local/graphicslibs/include --with-png-libs=/usr/local/graphicslibs/lib --with-tiff-includes=/usr/local/graphicslibs/include --with-tiff-libs=/usr/local/graphicslibs/lib \<br>
 --with-fftw-includes=/usr/local/grasslibs/include --with-fftw-libs=/usr/local/grasslibs/lib --with-tcltk-includes=/usr/local/X11R6/include --with-tcltk-libs=/usr/local/X11R6/lib --with-cxx --with-x --with-glw --without-odbc --enable-shared --with-motif --with-motif-includes=/usr/local/X11R6/include --with-motif-libs=/usr/local/X11R66/lib</code></blockquote>
 
@@ -80,7 +63,7 @@
 
 <p>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.</p>
 
-<p>Also, GRASS building emits a lot of 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).</p>
+<p>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).</p>
 
 <hr>
 <div align="right">&copy; 2003-2005 GRASS Development Team<br>

Index: grassinstall.php
===================================================================
RCS file: /grassrepository/web/platforms/macgrass/grassinstall.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- grassinstall.php	1 Aug 2005 01:11:08 -0000	1.6
+++ grassinstall.php	26 Aug 2005 14:20:45 -0000	1.7
@@ -15,18 +15,18 @@
 <hr width="100%" noshade="noshade" size="3">
 <h1>GRASS GIS on Mac OS X</h1>
 <h1 align="Center">Installation Main</h1>
-<p align="Center"><i>Last change: 2005/7/31</i><br>
+<p align="Center"><i>Last change: 2005/8/26</i><br>
 William Kyngesburye &lt;kyngchaos-at-kyngchaos-dot-com&gt;</p>
 <hr width="100%" noshade="noshade" size="3">
 </center>
 
 <?php include("macgrass_menu.inc"); ?>
 
-<p><b>NOTE:</b> These instructions are for GRASS v6.0.0, but should work with little or no change for GRASS CVS.  And, read everything here and pay attention.</p>
+<p><b>NOTE:</b> These instructions are for GRASS v6.0.x, but should work with little or no change for GRASS 6.1 CVS.  And, <u>read everything here and pay attention</u>.</p>
 
 <h3>Introduction</h3>
 
-<p>Mac OS X has its roots in UNIX, but that is all hidden and transparent to the user, unlike other 'nix systems.  X11 and window managers is not something your average Mac user is exposed to, and package managers are left to others and are not a normal part of the system.  There are many common libraries included in Mac OS X, but there are also many that not or have Mac alternatives (not usually usable as substitutes for 'nix libraries).  Even the 'nix developer tools are optional as a part of the Mac OS X developer tools.</p>
+<p>Mac OS X has its roots in UNIX, but that is all hidden and transparent to the user, unlike other 'nix systems.  X11 and window managers is not something your average Mac user is exposed to, and package managers are left to others and are not a normal part of the system.  There are many common libraries included in Mac OS X, but there are also many that are not or have Mac alternatives (not usually usable as substitutes for 'nix libraries).  Even the 'nix developer tools are optional as a part of the Mac OS X developer tools.</p>
 
 <p>So, we're left to fend for ourselves.  Or to let others do it and distribute <a href="/download/index.php">binaries</a>.  But these pages are for the do-it-yourselfers.</p>
 
@@ -46,7 +46,7 @@
 
 <p><b>Admin access</b> to your Mac is recommended.  But, it is possible to install all this in another location without admin privileges, like your home folder.</p>
 
-<p>A <b>text editor</b>.  If you can afford it, <a href="http://www.barebones.com/">BBEdit</a> is your best choice.  Their free TextWrangler also works well.  Both have command-line tools to open a file in their applications, and both can easily open invisible (dot) files, and edit administrator-privileged files.  Tex-Edit Plus is also a good choice, but it's hard to open invisible files.  If you're up to it, you're welcome to the command line editors like pico.</p>
+<p>A <b>text editor</b>.  If you can afford it, <a href="http://www.barebones.com/">BBEdit</a> is your best choice.  Their free TextWrangler also works very well.  Both have command-line tools to open a file in their applications, and both can easily open invisible (dot) files, and edit administrator-privileged files.  Tex-Edit Plus is also a good choice, but it's hard to open invisible files.  If you're up to it, you're welcome to the command line editors like pico.</p>
 
 <p><a href="shell.php">Setup your shell</a> for easy user command access.</p>
 

Index: postgresql.php
===================================================================
RCS file: /grassrepository/web/platforms/macgrass/postgresql.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- postgresql.php	23 Jul 2005 04:44:19 -0000	1.3
+++ postgresql.php	26 Aug 2005 14:20:45 -0000	1.4
@@ -15,7 +15,7 @@
 <hr width="100%" noshade="noshade" size="3">
 <h1>GRASS GIS on Mac OS X</h1>
 <h2>PostgreSQL + PostGIS</h2>
-<p><i>Last change: 2005/7/18</i></p>
+<p><i>Last change: 2005/8/26</i></p>
 <hr width="100%" noshade="noshade" size="3">
 </center>
 
@@ -23,9 +23,11 @@
 
 <p><b>PostgreSQL version:</b> 8.0.3<br>
 <a href="http://www.postgresql.org/">postgresql.org</a><br>
-<b>PostGIS version:</b> 1.0.2<br>
+<b>PostGIS version:</b> 1.0.3<br>
 <a href="http://postgis.refractions.net/">refractions.net</a></p>
 
+<p>GRASS doesn't actually use PostGIS, but it's a good alternative to shapefiles for use in MapServer.</p>
+
 <p>Note: If you are upgrading Postgres or PostGIS, stop Postgres first.  In a Terminal (assuming you have it running under an install with these instructions):</p>
 
 <blockquote><code>$ su - postgres -c '/usr/local/pgsql/bin/pg_ctl stop -D /usr/local/pgsql/data'</code></blockquote>
@@ -51,7 +53,7 @@
 <h3>for PostGIS</h3>
 
 <blockquote><code>$ cd <i>path_to_folder_containing_postgis_source.tar.gz</i><br>
-$ tar -zxf postgis-1.0.2.tar.gz</code></blockquote>
+$ tar -zxf postgis-1.0.3.tar.gz</code></blockquote>
 
 <p>A couple patches to do.  First, a config patch, edit <code>makefile.config</code>.  Edit the PROJ and GEOS sections so that the USE_XXXX is 1 and the XXXX_DIR is /usr/local.  Also change USE_ICONV to 1.</p>
 
@@ -59,7 +61,7 @@
 
 <p><code>override CFLAGS += -DUSE_ICONV -liconv</code></p>
 
-<blockquote><code>$ cd postgis-1.0.2<br>
+<blockquote><code>$ cd postgis-1.0.3<br>
 $ export PGSQL_SRC=<i>path_to_postgresql_source</i><br>
 $ make<br>
 $ sudo make install</code></blockquote>





More information about the grass-web mailing list