No subject


Wed Nov 14 13:37:45 EST 2007


<BR>
</FONT><FONT FACE=3D"Courier, Courier New">GRASS 6.1.cvs (SaskNad83UTM) &gt; =
which awk<BR>
/usr/bin/awk<BR>
<BR>
</FONT><FONT FACE=3D"Verdana, Helvetica, Arial">This is the one present in th=
e OSX system files.<BR>
<BR>
With respect to fink, the only file on my system (Spotlight search for FINK=
) is FinkCommander.pl.=A0 I haven't used it.<BR>
<BR>
<BR>
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.<BR>
<BR>
v.db.addcol=A0 =A0appears to work.<BR>
<BR>
Emboldened by my apparent success, I did the same with d.qgis which is a se=
cond instance where I got the Awk not present error message.=A0 This works as =
well.<BR>
<BR>
It seems that the problem is not whether AWK is present, but with the=A0 test=
 to see if AWK is present.<BR>
<BR>
Any thoughts on the cause of this.=A0=A0<BR>
<BR>
I'm hoping that the problem isn't too deep as commenting out code pretty mu=
ch taps out my programming skills.<BR>
<BR>
Thanks<BR>
<BR>
Dave<BR>
<BR>
<BR>
<BR>
On Mar 7, 2006, at 5:43 PM, Dave Kent wrote:<BR>
<BR>
</FONT></SPAN><BLOCKQUOTE><SPAN DEFANGED_STYLE=3D'font-size:12.0px'><FONT FACE=3D"Verdan=
a, Helvetica, Arial">Thanks Michael:<BR>
<BR>
I get:<BR>
<BR>
</FONT><FONT FACE=3D"Courier, Courier New">GRASS 6.1.cvs (SaskNad83UTM) &gt; =
$PATH<BR>
tcsh: /usr/X11R6/bin:/usr/local/bin:/usr/local/grasslib/bin:/Applications/G=
rass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/bin:/Applicati<BR>
ons/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/scripts:/usr/bin:=
/bin:<FONT COLOR=3D"#3712B2">/</FONT><FONT COLOR=3D"#0C08B2">usr/bin</FONT>:/bin=
:/usr/sbin:/sbin: Command not found.<BR>
</FONT><FONT FACE=3D"Verdana, Helvetica, Arial"><BR>
<BR>
Looks like=A0 /usr/bin is present.=A0 In fact it is in twice.=A0 Could this be a =
problem?<BR>
<BR>
What does &quot;command not found&quot; indicate?<BR>
<BR>
Dave<BR>
<BR>
<BR>
On Mar 7, 2006, at 11:34 AM, Michael Barton wrote:<BR>
<BR>
</FONT></SPAN><BLOCKQUOTE><SPAN DEFANGED_STYLE=3D'font-size:12.0px'><FONT FACE=3D"Verdan=
a, Helvetica, Arial"> 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>
&nbsp;<BR>
&nbsp;$PATH<BR>
&nbsp;<BR>
&nbsp;(followed by return) and see if /usr/bin is in the list of folders.<B=
R>
&nbsp;<BR>
&nbsp;Michael<BR>
&nbsp;______________________________<BR>
&nbsp;Michael Barton, Professor of Anthropology<BR>
&nbsp;School of Human Evolution and Social Change<BR>
&nbsp;Arizona State University<BR>
&nbsp;Tempe, AZ =A085287-2402<BR>
&nbsp;USA<BR>
&nbsp;<BR>
&nbsp;voice: 480-965-6262; fax: 480-965-7671<BR>
&nbsp;www: <a href=3D"http://www.public.asu.edu/~cmbarton">http://www.public.=
asu.edu/~cmbarton</a><BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
<HR ALIGN=3DCENTER SIZE=3D"3" WIDTH=3D"95%"><B>From: </B>Dave Kent &lt;dkent at sask=
tel.net&gt;<BR>
&nbsp;<B>Date: </B>Mon, 06 Mar 2006 23:11:40 -0600<BR>
&nbsp;<B>To: </B>&lt;GRASSLIST at baylor.edu&gt;<BR>
&nbsp;<B>Subject: </B>[GRASSLIST:10784] awk not found on Mac osx, Repost<BR=
>
&nbsp;<BR>
&nbsp;I posted this some time ago.=A0 Markus responded with a change which ha=
s been incorporated into CVS code.<BR>
&nbsp;<BR>
&nbsp;However, this hasn't helped things for me as I still am getting a pro=
blem with &quot;awk required&quot;<BR>
&nbsp;<BR>
&nbsp;I am using 6.1 CVS with Lorenzo's binaries (06 March 06 ) on a macint=
osh OS 10.4.=A0=A0<BR>
&nbsp;<BR>
&nbsp;When I try to add a database column I get:<BR>
&nbsp;<BR>
&nbsp;</FONT><FONT FACE=3D"Courier, Courier New">v.db.addcol map=3DCondieHead l=
ayer=3D1 'columns=3DElev varchar(10)'<BR>
&nbsp;csh: /sw/bin/init.csh: No such file or directory.<BR>
&nbsp;: awk required, please install awk/gawk first<BR>
&nbsp;<BR>
</FONT><FONT FACE=3D"Verdana, Helvetica, Arial"> <BR>
&nbsp;This suggests awk is absent.=A0 When I invoke awk from the grass comman=
d line, I get:<BR>
&nbsp;<BR>
&nbsp;</FONT><FONT FACE=3D"Courier, Courier New">GRASS 6.1.cvs (SaskNad83UTM)=
 &gt; awk<BR>
&nbsp;Usage: awk [-f programfile | 'program'] [-Ffieldsep] [-v var=3Dvalue] [=
files]<BR>
&nbsp;<BR>
</FONT><FONT FACE=3D"Verdana, Helvetica, Arial"> <BR>
&nbsp;This suggests that awk is present as it lists=A0 the help line.<BR>
&nbsp;<BR>
&nbsp;I have not installed awk/gawk.=A0 It is present in the Mac OSX installa=
tion at =A0 =A0/usr/bin/awk<BR>
&nbsp;<BR>
&nbsp;Are there some environmental or other settings I need to set so that =
Grass sees awk?<BR>
&nbsp;<BR>
&nbsp;This also happens when opening a QGIS connection from the display man=
ager.<BR>
&nbsp;<BR>
&nbsp;Thanks<BR>
&nbsp;<BR>
&nbsp;Dave<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;<BR>
</FONT></SPAN></BLOCKQUOTE><SPAN DEFANGED_STYLE=3D'font-size:12.0px'><FONT FACE=3D"Verda=
na, Helvetica, Arial"><BR>
</FONT></SPAN></BLOCKQUOTE><SPAN DEFANGED_STYLE=3D'font-size:12.0px'><FONT FACE=3D"Verda=
na, Helvetica, Arial"><BR>
<BR>
</FONT></SPAN>
</BODY>
</HTML>


--Boundary_(ID_W7MLaQZOf80DnYdnWYt1Dw)--




More information about the grass-dev mailing list