[GRASSLIST:1697] Re: GRASS binaries: why not?
Glynn Clements
glynn.clements at virgin.net
Thu Nov 6 07:01:54 EST 2003
Richard Greenwood wrote:
> I have a good binary of grass5.0.3rc5 on cygwin (thanks to Glynn's tireless
> help) that I would like to contribute to the mix, but i have one
> peculiarity that I think should be cleaned up:
>
> I configure with
> --prefix=/usr/local/grass5.0.3rc5
> but it insist on creating in install directory of:
> /usr/local/grass5.0.3rc5/grass5
>
> Where is the /grass5 coming from?
It's hardcoded into Makefile.in (and possibly some other places):
INST_DIR= ${prefix}/grass at NAME_VER@
IOW, for --prefix=/usr/local (the default), GISBASE is
/usr/local/grass5; for --prefix=/opt, it's /opt/grass5 etc.
The way that configure handles --prefix etc is designed for typical
Unix programs which get installed into the various system (e.g.
/usr/local/bin, /usr/local/lib, /usr/local/include etc), rather than
those which install under a single root.
If you want to name the installation point something other than
"grass5", the simplest solution is simply to move it post-installation
and change the value of GISBASE in the grass5 script.
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-user
mailing list