<HTML>
<HEAD>
<TITLE>Re: [GRASSLIST:10784] awk not found on Mac osx, Repost</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN DEFANGED_STYLE='font-size:12.0px'>It sounds like a path problem. That is, it sounds like /usr/bin is not in your default path, or at least the one active within the GRASS environment. From the GRASS command line, type <BR>
<BR>
$PATH<BR>
<BR>
(followed by return) and see if /usr/bin is in the list of folders.<BR>
<BR>
Michael<BR>
______________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution and Social Change<BR>
Arizona State University<BR>
Tempe, AZ &nbsp;85287-2402<BR>
USA<BR>
<BR>
voice: 480-965-6262; fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a><BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"><B>From: </B>Dave Kent &lt;dkent@sasktel.net&gt;<BR>
<B>Date: </B>Mon, 06 Mar 2006 23:11:40 -0600<BR>
<B>To: </B>&lt;GRASSLIST@baylor.edu&gt;<BR>
<B>Subject: </B>[GRASSLIST:10784] awk not found on Mac osx, Repost<BR>
<BR>
I posted this some time ago.  Markus responded with a change which has been incorporated into CVS code.<BR>
<BR>
However, this hasn't helped things for me as I still am getting a problem with &quot;awk required&quot;<BR>
<BR>
I am using 6.1 CVS with Lorenzo's binaries (06 March 06 ) on a macintosh OS 10.4.  <BR>
<BR>
When I try to add a database column I get:<BR>
<BR>
</SPAN></FONT><SPAN DEFANGED_STYLE='font-size:12.0px'><FONT FACE="Courier, Courier New">v.db.addcol map=CondieHead layer=1 'columns=Elev varchar(10)'<BR>
csh: /sw/bin/init.csh: No such file or directory.<BR>
: awk required, please install awk/gawk first<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"><BR>
<BR>
This suggests awk is absent.  When I invoke awk from the grass command line, I get:<BR>
<BR>
</FONT><FONT FACE="Courier, Courier New">GRASS 6.1.cvs (SaskNad83UTM) &gt; awk<BR>
Usage: awk [-f programfile | 'program'] [-Ffieldsep] [-v var=value] [files]<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"><BR>
<BR>
This suggests that awk is present as it lists  the help line.<BR>
<BR>
I have not installed awk/gawk.  It is present in the Mac OSX installation at    /usr/bin/awk<BR>
<BR>
Are there some environmental or other settings I need to set so that Grass sees awk?<BR>
<BR>
This also happens when opening a QGIS connection from the display manager.<BR>
<BR>
Thanks<BR>
<BR>
Dave<BR>
<BR>
<BR>
</FONT></SPAN>
</BODY>
</HTML>