<!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. I've recently switched my default shell program from tcsh
to bash. 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> % 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 -> Utilities -> NetInfo Manager). Click on
"users" then find your account. In the lower pane is
"shell" and see the path. If you see "/bin/tcsh"
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 -> Utilities -> Terminal) then go
to Terminal -> Terminal Preferences and select "Execute this
command" 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> % which awk</div>
<div>and see the result. In OS X the path is:</div>
<div> % /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
"/Applications/GrassGIS/Grass6.app/Contents/Resources/grass-6.2.<span
></span>1/scripts/d.qgis"</div>
<div><br></div>
<div>and comment these rows:</div>
<div># Check if we have awk.<br>
# if [ ! -x "`which awk`" ] ; then<br>
# echo "$SCRIPT: awk required, please install
awk or gawk first" 2>&1<br>
# 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">---> GRASS OS X</font></div>
<div><font color="#000000">GRASS 6.2.1 (location):~ > d.qgis
file=/Applications/qgis-0.8.0/qgis.app &</font></div>
<div><font color="#000000"><br></font></div>
<div><font color="#000000">---> GRASS X11</font></div>
<div><font color="#000000">GRASS 6.2.1 (location):~ > d.qgis
file=/Applications/qgis-0.8.0/qgis.app/Contents/MacOS/qgis</font>
&</div>
<div><br></div>
<div>Bye</div>
<div><br></div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div
>____________________________________________________________________<span
></span>______<br>
|| Lorenzo
Moretti e-mail:
lorenzo.moretti@bologna.enea.it <br>
||/|/| ENEA ACS PROTIDR Web:
http://wwwamb.bologna.enea.it/ <br>
|| | via Don Fiammelli, 2 <br>
~~~~~~ 40128 BOLOGNA - ITALY 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>