[GRASS5] New initialization code

Eric Mitchell emitchell at altaira.com
Fri Dec 1 11:54:34 EST 2000


Andreas Lange wrote:
> 
> Hi,
> 
> Eric Mitchell wrote:
> > On Unix systems, "ln -s `which wish` $GISBASE/bin/grasswish".
> > Any desired wish could be used, configure could take a
> > --with-wish=/path/to/mywish argument for configurability,
> > or check for "wish, wish8.0, etc." for known working versions.
> 
> I think that this has the problem that it must be implemented somehow
> with the install script too, as re-compiling should be (at least for
> linux) the exeption, not the standard.

As long as all of grass's Tcl/Tk scripts reference "grasswish" 
in their restart-in-wish line, you'd just have to change which
wish is referenced by the symbolic link.  You wouldn't have to 
recompile any code, unless tcltkgrass depends on a custom Tcl
interpreter, but that would require a recompile to use a 
different Tcl interpreter anyway.

> > This way, the user can update their wish, and grass doesn't
> > necessarily rely on a particular version of wish, just a link
> > from (or copy in) $GISBASE/bin/grasswish to the "real" wish.
> 
> This may cause problems for people who have no root access to the
> machine they want to install grass on.

No more of a problem than trying to install grass itself.  They 
could install it under their home directory, assuming they have 
the space.  Which means they could always overwrite it if they 
need to.  You could even have your own grasswish link/executable
in your PATH before the grass-installed one. (e.g. ~/bin).  

> I don't know, i think it should be up to Justin and/or Markus to decide
> how it should be done.

Agreed, I'm just throwing ideas out there.  My company's main
product where I work does a lot with Tcl/Tk and custom wish 
interpreters, so I was offering some of the ideas we've tried 
that might work for grass.

> cu,
> 
> Andreas

-- ebm
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| Eric B. Mitchell         mailto:emitchell at altaira.com |
| tel: (301) 809 - 3534    Altair Aerospace Corporation |
| tel: (800) 7 - ALTAIR    4201 Northview Dr. Suite 410 |
| fax: (301) 805 - 8122    Bowie, MD  20716             |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
              ,___
          /"\  / o=\  /"""---===/
         /   \_/  \__/   ---===/ 
         |    //\   || /""TT""/ //\   || ||""\
         |   //  \  ||    ||   //  \  || ||__/
         |  //--==\ |L--/ ||  //--==\ || || "=,
          \      ---===/
           \____---===/

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list