I am trying to run "ogr2ogr" command
macbook$ sudo ogr2ogr -f "PostgreSQL" PG:"dbname=test user=postgres" /Users/macbook/planning.gdb
But I am getting this error:
dyld: Library not loaded: /Library/Frameworks/GDAL.framework/Versions/1.10/GDAL
Referenced from: /Library/Frameworks/GDAL.framework/Programs/ogr2ogr
Reason: no suitable image found. Did find:
/usr/local/lib/GDAL: not a file
I following this answer : Error Updating GDAL with Homebrew
macbook$ export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH
macbook$ which ogr2ogr
/Library/Frameworks/GDAL.framework/Programs/ogr2ogr
But I am getting this error whenever I run the "ogr2ogr" command
macbook$ sudo ogr2ogr -f "PostgreSQL" PG:"dbname=test user=postgres" /Users/macbook/planning.gdb
dyld: Library not loaded: /Library/Frameworks/GDAL.framework/Versions/1.10/GDAL
Referenced from: /Library/Frameworks/GDAL.framework/Programs/ogr2ogr
Reason: no suitable image found. Did find:
/usr/local/lib/GDAL: not a file
When I run : macbook$ ls /usr/local/lib/ I can find the folder :
dtrace libopencv_highgui.dylib
gcc libopencv_imgproc.2.4.6.dylib
gdal libopencv_imgproc.2.4.dylib