[gdal-dev] gdal on OS X

Ken Mankoff mankoff at gmail.com
Sat Jun 19 00:33:34 EDT 2010


On Fri, 18 Jun 2010, William Kyngesburye wrote:

> On Jun 18, 2010, at 2:42 PM, Ken Mankoff wrote:
>
>> Hi List,
>>
>> I'm trying to get gdal working on OS X 10.6. I'm have tried a 
>> variety of ways with varying success.
>>
>> I installed GDAL 1.7 Complete from 
>> http://www.kyngchaos.com/software:frameworks
>>
>> If I go to /Library/Frameworks/GDAL.framework/unix/bin I can seem 
>> to run the unix binaries. For example, "./gdal_info" provides 
>> usage instructions. I cannot run the Python programs. If I launch 
>> my Python and type "from osgeo import gdal" it doesn't work 
>> because I run the EPD Python not the OS X default. That command 
>> *does* work, and the Python binaries do run (or at least print 
>> usage info) if I comment out the EPD section in my .bash_profile 
>> and run using the system Python.
>>
>> Any ideas how to run GDAL with EPD?
>>
> If the EPD Python you have installed is the same major version as 
> the system (2.6), this should work: try copying the gdal path file 
> from /Library/Python/2.6/site-packages/gdal.pth to the user 
> site-packages folder of the EPD python.
>
> My GDAL python binaries are built for Python 2.6, and may 
> (probably?) not work on Python 2.5 or 2.7.  Definitely (?) not 
> Python 3.
>

Yup, this works for me:

cp /Library/Python/2.6/site-packages/gdal.pth 
/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/

Thanks,

   -k.



More information about the gdal-dev mailing list