I successfully installed QGIS on my iMac with OS X 10.9.1 Mavericks using the installers provided by Kyngchaos. However, I'm having troubles accessing GDAL / ogr from terminal. It's giving me the following error message: -bash: ogr2ogr: command not found Does anybody have an idea of how to resolve this? Thank you, Ralf
You must understand the PATH and the $PATH variable on POSIX and Unix-like operating systems (as Mac OS X, look at The PATH Variable) and BASH
The GDAL programs of Kyngchaos, as Laurent Jégou says, are installed in
so, in the terminal, use the command:
If you do not want to write it every time, put this line in your .bash_profile file in /Users/you/ (hidden file, look at Hidden file and hidden directory):
Portion of my .bash_profile file
And each time you open Terminal.app, you automatically get the right paths:
Try "locate ogr2ogr", it will give you the full path of the tool.
On my own 1.10 install, its "/Library/Frameworks/GDAL.framework/Versions/1.10/Programs/ogr2ogr"