2

I'm trying to install GDAL on a Mac so I can use ogr2ogr against an Oracle database. This was as easy as:

brew install gdal

However, it seems the Homebrew edition of GDAL doesn't ship with Oracle support. When I list install options with brew options gdal, I see flags for thigns like MySQL and Postgres but nothing for Oracle. Does anyone know how to build GDAL using Homebrew but include Oracle/OCI support?

  • Have you tried the method in my answer? I rarely use Macs so some feedback would be useful – user2856 Jan 25 '17 at 22:30
  • Yes, thanks for sharing that. That seemed to be the right package but because of the nature of Oracle it requires you to place a zip file of the Instant Client in the Homebrew cache. I already had the IC installed and didn't want to muck with it, so I opted not to use this. But it may be helpful for others, so I'll mark it as solved. Thanks! – Rob Jan 26 '17 at 0:52
0

Have you tried osgeo4mac?

brew tap osgeo/osgeo4mac 
brew install osgeo/osgeo4mac/gdal1-oracle
#or for GDAL 2x
brew install osgeo/osgeo4mac/gdal2-oracle

More info on taps is available in the homebrew documentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.