[GRASS-user] GRASS 6.3 on OSX

I would like to upgrade my GRASS 6.1.cvs installation (William Kyngesburye's build) to the most recent 6.3.cvs so that I can start compiling from source.

First, do I need to completely remove all GRASS binaries, libraries, etc., and start over (my assumption is no, but I want to be safe before I either screw something up or, minimally, end up with two copies of stuff on my hard drive and therefore wasting valuable real estate!)?

Second, it would be nice to have a page on the wiki where it does instruct how to make a completely clean removal of all things GRASS and GRASS related for Mac OSX, and if it is there already, it's impossible to find via searches and surfing.

Third, I have noticed several detailed and beneficial FC4 compilation instruction sets, and have tried to apply them to my mac, without success. This is the main reason I pose the situation to the list - my grass61cvs app currently resides in /Applications/GRASS, and I've tried using some of the instructions for compiling/updating from source and when I run "make", bash tells me that PROJ4 cannot be found. Therefore, the rest of the process fails to work. But GRASS works perfectly on my system, which suggests that PROJ4 definitely IS installed.

Is there a simple directory problem that I am missing? Do I need to completely start over with a fresh install of one of the Mac builds?

Thanks for the help in advance,
Brandon

On Aug 15, 2006, at 4:31 PM, Brandon M. Gabler wrote:

I would like to upgrade my GRASS 6.1.cvs installation (William Kyngesburye's build) to the most recent 6.3.cvs so that I can start compiling from source.

It's a bit unclear what you want to do - you say you want to update an installed binary, but also that you want to build from source? The installed binary application isn't something you 'update' really, though it is possible if you know what you're doing. You would really be building from scratch from a downloaded source package. Or replacing it with a newer binary. Note - I added a 6.1.0 release app build this weekend. I probably won't get to a 6.3CVS build for a while - my MacBook goes in for repair tomorrow :frowning:

First, do I need to completely remove all GRASS binaries, libraries, etc., and start over (my assumption is no, but I want to be safe before I either screw something up or, minimally, end up with two copies of stuff on my hard drive and therefore wasting valuable real estate!)?

If you are building from source, it depends on where you are going to install it, and how. A normal unix build and install will install where you set the prefix, if this is over a current install, you shouldn't need to delete the old one first, unless it's a major update so you don't have remains of the old one left behind.

With my Python Mac OS X app build script, it doesn't even get installed in the prefix location, the app package is assembled within the 'macosx' build folder, which you can then drag to whereever you like.

Second, it would be nice to have a page on the wiki where it does instruct how to make a completely clean removal of all things GRASS and GRASS related for Mac OSX, and if it is there already, it's impossible to find via searches and surfing.

A good idea. There are a few different install possibilities now on OS X. Quick summary until a wiki page is added (just for GRASS, no supporting libs):

normal GRASS unix build, 2 executables and a folder:

/usr/local/bin/grass*
/usr/local/bin/gem
/usr/local/grass-*/

Lorenzo's GRASS app:

/Applications/grass60.app (maybe grass61.app also?)
/usr/local/grasslib/

my GRASS app:

/Applications/GRASS.app

Third, I have noticed several detailed and beneficial FC4 compilation instruction sets, and have tried to apply them to my mac, without success. This is the main reason I pose the situation to the list - my grass61cvs app currently resides in /Applications/GRASS, and I've tried using some of the instructions for compiling/updating from source and when I run "make", bash tells me that PROJ4 cannot be found. Therefore, the rest of the process fails to work. But GRASS works perfectly on my system, which suggests that PROJ4 definitely IS installed.

Is there a simple directory problem that I am missing? Do I need to completely start over with a fresh install of one of the Mac builds?

My GRASS.app works because you installed the frameworks. But a normal Unix configure won't find those frameworks by default, you need to specify -with-*-libs and --with-*-includes for everything. There is minimal info right now - within each framework, use the 'unix' folder as if it were a normal /usr/local prefix, so you might say: --with-proj-includes=/Library/Frameworks/PROJ.framework/unix/includes --with-proj-libs=/Library/Frameworks/PROJ.framework/unix/lib.

The macosx app build script is meant to be independent of how you build the grass source itself and what libraries or frameworks you use, and assumes you know how to do that. I should add an example to the macosx app build script.

As mentioned above, a build from source has nothing to do with an installed binary. But it will need the dependent libraries (or frameworks).

-----
William Kyngesburye <kyngchaos@kyngchaos.com>
http://www.kyngchaos.com/

"This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"

- The Ruler of the Universe

William Kyngesburye wrote:

> First, do I need to completely remove all GRASS binaries,
> libraries, etc., and start over (my assumption is no, but I want to
> be safe before I either screw something up or, minimally, end up
> with two copies of stuff on my hard drive and therefore wasting
> valuable real estate!)?
>
If you are building from source, it depends on where you are going to
install it, and how. A normal unix build and install will install
where you set the prefix, if this is over a current install, you
shouldn't need to delete the old one first, unless it's a major
update so you don't have remains of the old one left behind.

Note that "grass-<version>" is appended to the prefix, so 6.3 installs
to <prefix>/grass-6.3.cvs as opposed to <prefix>/grass-6.1.cvs for
previous versions.

Similarly, the script which is installed in the binary directory has
an abbreviated version number appended, e.g. grass61 or grass63.

So, you can have 6.1 installed in /usr/local/grass-6.1.cvs and started
by running "grass61", and 6.3 installed in /usr/local/grass-6.3.cvs
and started by running "grass63".

Also, you can install multiple variants of a single version by
renaming the installation directory and script for the existing
version, and changing the setting of GISBASE in the script to match
the renamed installation directory.

--
Glynn Clements <glynn@gclements.plus.com>

Is /Library/Frameworks/Python.framework/Versions/2.4/bin in your shell PATH? A default full install of Mac Python will do this for you. I don't know if ActivePython does this.

Even if the download and install steps to install easy_install work, without the PATH setup, it won't run.

On Aug 19, 2006, at 12:23 PM, Agustin Diez Castillo wrote:

William,
I'm trying your python app to build grass but I got stuck at
easy_install -U py2app # the machine ansers "easy_install: command not found"
# I do mfind easy_install and find nothing

Agustin

-----
William Kyngesburye <kyngchaos@kyngchaos.com>
http://www.kyngchaos.com/

"Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence....

- the wisdom of Tarzan

OK, now that you've verified that, I guess we need to back up to the other steps.

Could you tell if 'sudo python ez_setup.py -U setuptools' worked when you ran it? I don't remember what the exact output I got was. Try 'ls /Library/Frameworks/Python.framework/Versions/2.4/bin/' and see if the easy_install was really installed.

On Aug 20, 2006, at 10:45 AM, Agustin Diez Castillo wrote:

On 19/08/2006, at 07:39 PM, William Kyngesburye wrote:

Is /Library/Frameworks/Python.framework/Versions/2.4/bin in your shell PATH?

It seems to me that it is
echo $PATH
/sw/bin:/sw/sbin:/usr/local/bin:/usr/local/sbin:/Library/Frameworks/Python.framework/Versions/2.4/bin:/Library/Frameworks/GDAL.framework/Programs:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/teTeX/bin/powerpc-apple-darwin-current:/usr/local/bin:/usr/bin/:/usr/sbin/:/usr/local/postgres/:/usr/local/sidgeipa/bin/:/usr/local/sidgeipa/bin/texturer/:/usr/local/lib/wxPython-ansi-2.6.3.3/bin:/usr/local/sidgeipa/bin/admin/:/usr/local/bin/:/usr/local/pgsql/:/usr/local/pgsql/lib:/usr/local/mysql/bin/:/Users/agus/bin:/usr/local/sbin:/usr/X11R6/bin

-----
William Kyngesburye <kyngchaos@kyngchaos.com>
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.