[GRASS-user] Two questions re 6.4 and OSX 10.4

  Hi,

I'm running a MacBook Pro with 10.4.1 (burned too many times with upgrade instability; now that it's running nice, I don't feel any desire to upgrade the OS!).

My main question is this: how can I install the new 6.4 without over-writing my existing install? (Just in case I have trouble with the new version). Noting, of course, that because I'm on an aged OS, I have to use the compile-from-source instructions for OSX.

Richard

If you mean, install 6.4.0 without overwriting 6.4 RCs:

After you "make", don't "make install". Instead "make bindist". After it creates the Mac installer package, it leaves a full copy in macosx/dist (the staging area for creating the installer package), which you can move to whereever you like (or rename it).

If you mean, install GRASS 6.4.x without overwriting 6.3, then that's not a problem since the applications are named with the major.minor version.

Note that existing builds of Qgis.app will still use the older GRASS install, because of library linking, and setting the GRASS_GIS_BASE in Qgis to try to make it use the newer GRASS will only cause trouble. Qgis must be rebuilt to use the newer GRASS.

On Sep 13, 2010, at 5:39 PM, Richard Chirgwin wrote:

Hi,

I'm running a MacBook Pro with 10.4.1 (burned too many times with upgrade instability; now that it's running nice, I don't feel any desire to upgrade the OS!).

My main question is this: how can I install the new 6.4 without over-writing my existing install? (Just in case I have trouble with the new version). Noting, of course, that because I'm on an aged OS, I have to use the compile-from-source instructions for OSX.

Richard
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Those people who most want to rule people are, ipso-facto, those least suited to do it."

- A rule of the universe, from the HitchHiker's Guide to the Galaxy

  William - many thanks! I will be following your first instruction since I am using a 6.4 RC.

Cheers,
Richard

On 14/09/10 9:06 AM, William Kyngesburye wrote:

If you mean, install 6.4.0 without overwriting 6.4 RCs:

After you "make", don't "make install". Instead "make bindist". After it creates the Mac installer package, it leaves a full copy in macosx/dist (the staging area for creating the installer package), which you can move to whereever you like (or rename it).

If you mean, install GRASS 6.4.x without overwriting 6.3, then that's not a problem since the applications are named with the major.minor version.

Note that existing builds of Qgis.app will still use the older GRASS install, because of library linking, and setting the GRASS_GIS_BASE in Qgis to try to make it use the newer GRASS will only cause trouble. Qgis must be rebuilt to use the newer GRASS.

On Sep 13, 2010, at 5:39 PM, Richard Chirgwin wrote:

Hi,

I'm running a MacBook Pro with 10.4.1 (burned too many times with upgrade instability; now that it's running nice, I don't feel any desire to upgrade the OS!).

My main question is this: how can I install the new 6.4 without over-writing my existing install? (Just in case I have trouble with the new version). Noting, of course, that because I'm on an aged OS, I have to use the compile-from-source instructions for OSX.

Richard
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

-----
William Kyngesburye<kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Those people who most want to rule people are, ipso-facto, those least suited to do it."

- A rule of the universe, from the HitchHiker's Guide to the Galaxy

  William - I'm not getting as far as "make" yet. At configure, it fails:

Unable to locate External PROJ.4 includes.

This, even if I use:
--with-proj=/Library/Frameworks/PROJ.framework/Versions/4/Headers/proj_api.h

(I know that PROJ.4 is installed, I'm using 6.4.0-RC4 with no worries!)

Richard

On 14/09/10 9:06 AM, William Kyngesburye wrote:

If you mean, install 6.4.0 without overwriting 6.4 RCs:

After you "make", don't "make install". Instead "make bindist". After it creates the Mac installer package, it leaves a full copy in macosx/dist (the staging area for creating the installer package), which you can move to whereever you like (or rename it).

If you mean, install GRASS 6.4.x without overwriting 6.3, then that's not a problem since the applications are named with the major.minor version.

Note that existing builds of Qgis.app will still use the older GRASS install, because of library linking, and setting the GRASS_GIS_BASE in Qgis to try to make it use the newer GRASS will only cause trouble. Qgis must be rebuilt to use the newer GRASS.

On Sep 13, 2010, at 5:39 PM, Richard Chirgwin wrote:

Hi,

I'm running a MacBook Pro with 10.4.1 (burned too many times with upgrade instability; now that it's running nice, I don't feel any desire to upgrade the OS!).

My main question is this: how can I install the new 6.4 without over-writing my existing install? (Just in case I have trouble with the new version). Noting, of course, that because I'm on an aged OS, I have to use the compile-from-source instructions for OSX.

Richard
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

-----
William Kyngesburye<kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Those people who most want to rule people are, ipso-facto, those least suited to do it."

- A rule of the universe, from the HitchHiker's Guide to the Galaxy

--with-proj --with-proj-includes=/Library/Frameworks/PROJ.framework/unix/include --with-proj-libs=/Library/Frameworks/PROJ.framework/unix/lib --with-proj-share=/Library/Frameworks/PROJ.framework/Resources/proj

On Sep 17, 2010, at 3:48 AM, Richard Chirgwin wrote:

William - I'm not getting as far as "make" yet. At configure, it fails:

Unable to locate External PROJ.4 includes.

This, even if I use:
--with-proj=/Library/Frameworks/PROJ.framework/Versions/4/Headers/proj_api.h

(I know that PROJ.4 is installed, I'm using 6.4.0-RC4 with no worries!)

Richard

On 14/09/10 9:06 AM, William Kyngesburye wrote:

If you mean, install 6.4.0 without overwriting 6.4 RCs:

After you "make", don't "make install". Instead "make bindist". After it creates the Mac installer package, it leaves a full copy in macosx/dist (the staging area for creating the installer package), which you can move to whereever you like (or rename it).

If you mean, install GRASS 6.4.x without overwriting 6.3, then that's not a problem since the applications are named with the major.minor version.

Note that existing builds of Qgis.app will still use the older GRASS install, because of library linking, and setting the GRASS_GIS_BASE in Qgis to try to make it use the newer GRASS will only cause trouble. Qgis must be rebuilt to use the newer GRASS.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Time is an illusion - lunchtime doubly so."

- Ford Prefect

  William,

Make exits with an error in Nviz; /lib/nviz won't make. Here's the /lib/nviz error:

    (cd /usr/local/grass-6.4.0/dist./lib; ln -f -s libgrass_nviz.6.4.0.dylib /usr/local/grass-6.4.0/dist./lib/libgrass_nviz.dylib)
ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
collect2: ld returned 1 exit status
make: *** [/usr/local/grass-6.4.0/dist./lib/libgrass_nviz.6.4.0.dylib] Error 1

Richard

On 17/09/10 11:47 PM, William Kyngesburye wrote:

--with-proj --with-proj-includes=/Library/Frameworks/PROJ.framework/unix/include --with-proj-libs=/Library/Frameworks/PROJ.framework/unix/lib --with-proj-share=/Library/Frameworks/PROJ.framework/Resources/proj

On Sep 17, 2010, at 3:48 AM, Richard Chirgwin wrote:

William - I'm not getting as far as "make" yet. At configure, it fails:

Unable to locate External PROJ.4 includes.

This, even if I use:
--with-proj=/Library/Frameworks/PROJ.framework/Versions/4/Headers/proj_api.h

(I know that PROJ.4 is installed, I'm using 6.4.0-RC4 with no worries!)

Richard

On 14/09/10 9:06 AM, William Kyngesburye wrote:

If you mean, install 6.4.0 without overwriting 6.4 RCs:

After you "make", don't "make install". Instead "make bindist". After it creates the Mac installer package, it leaves a full copy in macosx/dist (the staging area for creating the installer package), which you can move to whereever you like (or rename it).

If you mean, install GRASS 6.4.x without overwriting 6.3, then that's not a problem since the applications are named with the major.minor version.

Note that existing builds of Qgis.app will still use the older GRASS install, because of library linking, and setting the GRASS_GIS_BASE in Qgis to try to make it use the newer GRASS will only cause trouble. Qgis must be rebuilt to use the newer GRASS.

-----
William Kyngesburye<kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Time is an illusion - lunchtime doubly so."

- Ford Prefect

Ah! That old error. When you said OS X 10.4.1, did you really mean that, or is it 10.4.11?

This problem should be fixed in the system in 10.4.11, but 10.4.1 I think still had it.

If you really are at 10.4.1, then you definitely should apply all updates to 10.4.11. Also make sure you are using the last Xcode version possible for Tiger, 2.5 I think.

Another possible problem here is that make is getting confused between the system OpenGL and X11 OpenGL libraries. How are you configuring opengl and tcltk?

On Sep 18, 2010, at 1:37 AM, Richard Chirgwin wrote:

William,

Make exits with an error in Nviz; /lib/nviz won't make. Here's the /lib/nviz error:

   (cd /usr/local/grass-6.4.0/dist./lib; ln -f -s libgrass_nviz.6.4.0.dylib /usr/local/grass-6.4.0/dist./lib/libgrass_nviz.dylib)
ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
collect2: ld returned 1 exit status
make: *** [/usr/local/grass-6.4.0/dist./lib/libgrass_nviz.6.4.0.dylib] Error 1

Richard

On 17/09/10 11:47 PM, William Kyngesburye wrote:

--with-proj --with-proj-includes=/Library/Frameworks/PROJ.framework/unix/include --with-proj-libs=/Library/Frameworks/PROJ.framework/unix/lib --with-proj-share=/Library/Frameworks/PROJ.framework/Resources/proj

On Sep 17, 2010, at 3:48 AM, Richard Chirgwin wrote:

William - I'm not getting as far as "make" yet. At configure, it fails:

Unable to locate External PROJ.4 includes.

This, even if I use:
--with-proj=/Library/Frameworks/PROJ.framework/Versions/4/Headers/proj_api.h

(I know that PROJ.4 is installed, I'm using 6.4.0-RC4 with no worries!)

Richard

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.

  Some days I don't pay attention - I slipped into a time-warp, actually I'm on 10.5.8.

So I think confusion on the libraries is right. Mind you, I don't actually use Nviz and can do without, but g.mkfontcap is failing as well.

Here's the config line I've been using, from the Wiki with some edits (eg locating MySQL).

./configure --enable-sysv --with-x --with-opengl=x11 --with-cxx --with-freetype \
--with-mysql=yes \
--with-mysql-includes=/usr/local/mysql-5.1.40-osx10.5-x86/include \
--with-mysql-libs=/usr/local/mysql-5.1.40-osx10.5-x86/lib \
--with-freetype-includes=/Library/Frameworks/FreeType.framework/unix include \
--with-freetype-libs=/Library/Frameworks/FreeType.framework/unix/lib \
--with-gdal=/Library/Frameworks/GDAL.framework/Versions/1.6/Programs/gdal-config \
--with-proj-includes=/Library/Frameworks/PROJ.framework/Versions/4/unix/include \
--with-proj-libs=/Library/Frameworks/PROJ.framework/Versions/4/unix/lib \
--with-proj-share=/Library/Frameworks/PROJ.framework/Versions/4/unix/share/ \
--with-jpeg \
--with-jpeg-includes=/Library/Frameworks/UnixImageIO.framework/unix/include \
--with-jpeg-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib \
--with-tiff \
--with-tiff-includes=/Library/Frameworks/UnixImageIO.framework/unix/include \
--with-tiff-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib \
--with-png-includes=/Library/Frameworks/UnixImageIO.framework/unix/include \
--with-png-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib \
--with-sqlite \
--with-sqlite-libs=/Library/Frameworks/SQLite3.framework/unix/lib \
--with-sqlite-includes=/Library/Frameworks/SQLite3.framework/unix/include \
--with-fftw \
--with-fftw-includes=/Library/Frameworks/FFTW3.framework/unix/include \
--with-fftw-libs=/Library/Frameworks/FFTW3.framework/unix/lib \
--with-postgres-includes=/usr/local/pgsql/include --with-postgres-libs=/usr/local/pgsql/lib \
--with-freetype \
--with-freetype-includes=/Library/Frameworks/FreeType.framework/unix/include \
--with-freetype-libs=/Library/Frameworks/FreeType.framework/unix/lib \
--with-nviz=no \
--with-python \
--with-tcltk-includes=/usr/local/include \
--with-tcltk-libs=/usr/local/lib \
--with-blas \
--with-lapack \
--with-blas-includes=/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers \
--with-lapack-includes=/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers \
--without-motif \
--with-opengl-libs=/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries

On 19/09/10 12:48 AM, William Kyngesburye wrote:

Ah! That old error. When you said OS X 10.4.1, did you really mean that, or is it 10.4.11?

This problem should be fixed in the system in 10.4.11, but 10.4.1 I think still had it.

If you really are at 10.4.1, then you definitely should apply all updates to 10.4.11. Also make sure you are using the last Xcode version possible for Tiger, 2.5 I think.

Another possible problem here is that make is getting confused between the system OpenGL and X11 OpenGL libraries. How are you configuring opengl and tcltk?

On Sep 18, 2010, at 1:37 AM, Richard Chirgwin wrote:

William,

Make exits with an error in Nviz; /lib/nviz won't make. Here's the /lib/nviz error:

    (cd /usr/local/grass-6.4.0/dist./lib; ln -f -s libgrass_nviz.6.4.0.dylib /usr/local/grass-6.4.0/dist./lib/libgrass_nviz.dylib)
ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
collect2: ld returned 1 exit status
make: *** [/usr/local/grass-6.4.0/dist./lib/libgrass_nviz.6.4.0.dylib] Error 1

Richard

On 17/09/10 11:47 PM, William Kyngesburye wrote:

--with-proj --with-proj-includes=/Library/Frameworks/PROJ.framework/unix/include --with-proj-libs=/Library/Frameworks/PROJ.framework/unix/lib --with-proj-share=/Library/Frameworks/PROJ.framework/Resources/proj

On Sep 17, 2010, at 3:48 AM, Richard Chirgwin wrote:

William - I'm not getting as far as "make" yet. At configure, it fails:

Unable to locate External PROJ.4 includes.

This, even if I use:
--with-proj=/Library/Frameworks/PROJ.framework/Versions/4/Headers/proj_api.h

(I know that PROJ.4 is installed, I'm using 6.4.0-RC4 with no worries!)

Richard

-----
William Kyngesburye<kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.

On Sep 18, 2010, at 4:47 PM, Richard Chirgwin wrote:

Some days I don't pay attention - I slipped into a time-warp, actually I'm on 10.5.8.

Well, then you could just install from the binary. Though it will overwrite your RC4. Is there any reason you want to keep that? There should not be any loss of funtionality with 6.4.0 vs. RC4, except for the dropping of the wx vdigit and wxnviz from the GUI (they weren't finished anyways).

You could rename RC4 before installing 6.4.0.

So I think confusion on the libraries is right. Mind you, I don't actually use Nviz and can do without, but g.mkfontcap is failing as well.

Then make sure you are using Xcode 3.1. 3.0 is broken for that very library re-export problem.

Here's the config line I've been using, from the Wiki with some edits (eg locating MySQL).

./configure --enable-sysv --with-x --with-opengl=x11 --with-cxx --with-freetype \

...

--with-opengl-libs=/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries

I think the wiki is a bit out of date. I thought about updating it, but there are a few different versions of things there and in the old site pages. At least I think it refers people to the readme in the source, but you should look at macosx/readme.rtf in the source.

You are configuring for the X11 opengl, but then pointing the opengl libs to the system framework. This will cause trouble. OpenGL has a special setting for OS X that will get the linking correct.

Note also that I don't make my FFTW3 framework any more, you're on your own to compile that.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

The equator is so long, it could encircle the earth completely once.