[GRASS-user] Problems to launch QGIS from GRASS

Hamish hamish_b at yahoo.com
Sun Dec 11 20:19:25 EST 2011


José wrote:
> When I check the echo $PATH from within GRASS
> session, this is the message,
>
> GRASS 6.4.1 (spearfish60):~ > echo $PATH
> /Applications/GRASS-6.4.app/Contents/MacOS/bin:/Applications/GRASS-6.4.app/Contents/MacOS/scripts:/Users/joseca/Library/GRASS/6.4/Modules/bin:/Library/GRASS/6.4/Modules/bin:/Library/Frameworks/GDAL.framework/unix/bin:/Library/Frameworks/PROJ.framework/Programs:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
>
>
> GRASS 6.4.1 (spearfish60):~ > qgis
> bash: qgis: command not found
>
> I do not know how to solve it but I am very
> grateful to your help.

ah ok, this is a Mac.

first thing to do is to hunt down the qgis executable and get it into one of the $PATH directories.

try like:

ls -l /Applications/QuantumGIS.app/Contents/MacOS/

and look for a qgis file (not directory) with "x" permissions.

once you have that make a symlink into /usr/local/bin

ln -s /Applications/QuantumGIS.app/Contents/MacOS/qgis /usr/local/bin/


you might have to put "sudo" before the symlink to get it to work.

(not sure of exact qgis pathnames, but something
similar to the above)


Hamish


More information about the grass-user mailing list