if you put /usr/local/bin before $PATH, it breaks any user PATH dir pointing to differen places.
Radim
if you put /usr/local/bin before $PATH, it breaks any user PATH dir pointing to differen places.
Radim
In fact, shouldn't it be the first thing on the line?
PATH=$PATH:$GISBASE/bin:$GISBASE/scripts:/usr/X11R6/bin:/usr/local/bin:/usr/
local/grasslib/bin:$GRASS_ADDON_PATH
instead of...
PATH=$GISBASE/bin:$GISBASE/scripts:/usr/X11R6/bin:/usr/local/bin:/usr/local/
grasslib/bin:$PATH:$GRASS_ADDON_PATH
Michael
______________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA
voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
From: Radim Blazek <blazek@itc.it>
Date: Fri, 08 Apr 2005 18:11:24 +0200
To: grass5 <grass5@grass.itc.it>
Cc: Michael Barton <michael.barton@asu.edu>
Subject: init.sh PATHFreeGIS.org
t-type=text/vnd.viewcvs-markupif you put /usr/local/bin before $PATH, it breaks any user PATH dir
pointing to differen places.Radim
Michael Barton wrote:
In fact, shouldn't it be the first thing on the line?
PATH=$PATH:$GISBASE/bin:$GISBASE/scripts:/usr/X11R6/bin:/usr/local/bin:/usr/
local/grasslib/bin:$GRASS_ADDON_PATHinstead of...
PATH=$GISBASE/bin:$GISBASE/scripts:/usr/X11R6/bin:/usr/local/bin:/usr/local/
grasslib/bin:$PATH:$GRASS_ADDON_PATH
No, the GRASS directories should take precedence, i.e.:
PATH=$GISBASE/bin:$GISBASE/scripts:$GRASS_ADDON_PATH:$PATH
Note: no fixed directories (e.g. /usr/local/bin) should be added by
init.sh. The search order for external directories (i.e. anything
which isn't part of GRASS) is up to the user.
--
Glynn Clements <glynn@gclements.plus.com>