I tried to install python GDAL via pip but getting the following error:
extensions/gdal_wrap.cpp:4265:47: error: use of undeclared identifier 'GDALDatasetCreateLayer'; did you mean 'GDALDatasetShadow_CreateLayer'? OGRLayerShadow* layer = (OGRLayerShadow*) GDALDatasetCreateLayer( self, GDALDatasetShadow_CreateLayer
I guessed the reason is the mismatched version of GDAL library, so tried this:
$ brew unlink gdal
$ brew install gdal
$ gdalinfo --version
GDAL 1.11.1, released 2014/09/24
But, still getting the error.
Do I need to install an older version of python GDAL? If so, please let me know which version.
Thanks.
otool -L $(which gdalinfo)
as well as justwhich gdalinfo
to be sure. If you tried installing via pip, did you use the system's python / pip or did you use brew's? Are you perhaps still using the former? Are you using a virtualenv for any of this?