<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [GRASS-user] GRASS-QGIS
connection</title></head><body>
<div>Hi David</div>
<blockquote type="cite" cite>Hello,<br>
</blockquote>
<blockquote type="cite" cite>I'm running Lorenzo's binaries (6.2.1) on
OS X.&nbsp; I've recently switched my default shell program from tcsh
to bash.&nbsp; When I try to launch QGIS from within GRASS, I receive
the following:</blockquote>
<blockquote type="cite" cite><br></blockquote>
<div><br></div>
<div>Bash shell is required.</div>
<div><br></div>
<div>In a new Terminal window enter:</div>
<div>&nbsp;% env</div>
<div>and see the result. If you see this row:</div>
<div>SHELL=/bin/bash</div>
<div><br></div>
<div>Bash shell is used and you can use GRASS OS X.</div>
<div><br></div>
<div>Or change your default shell inside OS X in two ways:</div>
<div><br></div>
<div>Solid way:</div>
<div><font color="#333333">Go to into the NetInfo Manager program
(Applications -&gt; Utilities -&gt; NetInfo Manager). Click on
&quot;users&quot; then find your account. In the lower pane is
&quot;shell&quot; and see the path. If you see &quot;/bin/tcsh&quot;
change it to /bin/bash, then quit NetInfo Manager and
restart.</font></div>
<div><br></div>
<div>Light way:</div>
<div><font size="-4" color="#333333">If you don't want to change the
NetInfo database entry for your account, go to Terminal</font><font
size="-4" color="#111066"> application</font><font size="-4"
color="#333333"> (Applications -&gt; Utilities -&gt; Terminal) then go
to Terminal -&gt; Terminal Preferences and select &quot;Execute this
command&quot; and make sure it's the shell you want (usually is
/bin/bash).</font></div>
<div><br></div>
<div>awk is used in many command inside Grass. It's checked at the
start of script.</div>
<div>Go to Terminal and in the new window (not inside Grass)
enter:</div>
<div>&nbsp;% which awk</div>
<div>and see the result. In OS X the path is:</div>
<div>&nbsp;% /usr/bin/awk</div>
<div><br></div>
<div>If you want you can comment the rows where awk is checked
...</div>
<div>Edit with Text editor the file
&quot;/Applications/GrassGIS/Grass6.app/Contents/Resources/grass-6.2.<span
></span>1/scripts/d.qgis&quot;</div>
<div><br></div>
<div>and comment these rows:</div>
<div># Check if we have awk.<br>
# if [ ! -x &quot;`which awk`&quot; ] ; then<br>
#&nbsp;&nbsp;&nbsp; echo &quot;$SCRIPT: awk required, please install
awk or gawk first&quot; 2&gt;&amp;1<br>
#&nbsp;&nbsp;&nbsp; exit 1<br>
# fi<br>
</div>
<div>Now restart d.qgis script (Open Qgis application under Xtns menu)
and select QGIS to run or inside terminal enter:</div>
<div><br></div>
<div><font color="#000000">---&gt; GRASS OS X</font></div>
<div><font color="#000000">GRASS 6.2.1 (location):~ &gt;&nbsp; d.qgis
file=/Applications/qgis-0.8.0/qgis.app &amp;</font></div>
<div><font color="#000000"><br></font></div>
<div><font color="#000000">---&gt; GRASS X11</font></div>
<div><font color="#000000">GRASS 6.2.1 (location):~ &gt;&nbsp; d.qgis
file=/Applications/qgis-0.8.0/qgis.app/Contents/MacOS/qgis</font>
&amp;</div>
<div><br></div>
<div>Bye</div>
<div><br></div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div
>____________________________________________________________________<span
></span>______<br>
||&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Lorenzo
Moretti&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e-mail:
lorenzo.moretti@bologna.enea.it&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
||/|/|&nbsp; ENEA ACS PROTIDR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Web:
http://wwwamb.bologna.enea.it/&nbsp;&nbsp;&nbsp;&nbsp;<br>
||&nbsp;&nbsp; |&nbsp; via Don Fiammelli, 2&nbsp;&nbsp;<br>
~~~~~~&nbsp; 40128 BOLOGNA - ITALY&nbsp; Ph: +39-0516098086<br>
ENEA - Ente Nazionale per le Nuove Tecnologie, l'Energia e
l'Ambiente<br>
ENEA - The Italian Agency for New Technologies, Energy and the
Environment<br>
_____________________________________________________________________<span
></span>_____</div>
</body>
</html>