<HTML><BODY DEFANGED_STYLE="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>Thanks</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>From the terminal:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-style-span">[<FONT class="Apple-style-span" face="Courier">DDKG5:~] davekent% awk</FONT></SPAN></DIV><DIV><FONT class="Apple-style-span" face="Courier">Usage: awk [-f programfile | 'program'] [-Ffieldsep] [-v var=value] [files]</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>From the Grass Command Line</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier">GRASS 6.1.cvs (SaskNad83UTM) > awk</FONT></DIV><DIV><SPAN class="Apple-style-span"><FONT class="Apple-style-span" face="Courier">Usage: awk [-f programfile | 'program'] [-Ffieldsep] [-v var=valu</FONT>e] <FONT class="Apple-style-span" face="Courier">[files]</FONT></SPAN></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>It seems to invoke awk in both cases.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>From William's note I tried "which awk"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier">GRASS 6.1.cvs (SaskNad83UTM) > which awk</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">/usr/bin/awk</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV>This is the one present in the OSX system files.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>With respect to fink, the only file on my system (Spotlight search for FINK) is FinkCommander.pl. I haven't used it.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV>So, on a whim I opened the v.db.addcol script and commented out the portion of the script which tests to see if AWK is present.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>v.db.addcol appears to work.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Emboldened by my apparent success, I did the same with d.qgis which is a second instance where I got the Awk not present error message. This works as well.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>It seems that the problem is not whether AWK is present, but with the test to see if AWK is present.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Any thoughts on the cause of this. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'm hoping that the problem isn't too deep as commenting out code pretty much taps out my programming skills.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Dave</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On Mar 7, 2006, at 5:43 PM, Dave Kent wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Thanks Michael:<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I get:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier">GRASS 6.1.cvs (SaskNad83UTM) > $PATH</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">tcsh: /usr/X11R6/bin:/usr/local/bin:/usr/local/grasslib/bin:/Applications/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/bin:/Applicati</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">ons/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/scripts:/usr/bin:/bin:<FONT class="Apple-style-span" color="#3712B2">/</FONT><FONT class="Apple-style-span" color="#0C08B2">usr/bin</FONT>:/bin:/usr/sbin:/sbin: Command not found.</FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Looks like /usr/bin is present. In fact it is in twice. Could this be a problem?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>What does "command not found" indicate?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Dave</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On Mar 7, 2006, at 11:34 AM, Michael Barton wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"> <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 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 <<A href="mailto:dkent@sasktel.net">dkent@sasktel.net</A>><BR> <B>Date: </B>Mon, 06 Mar 2006 23:11:40 -0600<BR> <B>To: </B><<A href="mailto:GRASSLIST@baylor.edu">GRASSLIST@baylor.edu</A>><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 "awk required"<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 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) > 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> </BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>