Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

gdal 1.10: dyld: Library not loaded #28887

Closed
adaromu opened this issue May 1, 2014 · 2 comments
Closed

gdal 1.10: dyld: Library not loaded #28887

adaromu opened this issue May 1, 2014 · 2 comments

Comments

@adaromu
Copy link

adaromu commented May 1, 2014

I use brew install gdal, no any error report. But when I use gdal command ogr2ogr, it doesn't work.

$ ogr2ogr
dyld: Library not loaded: /usr/local/lib/libproj.0.dylib
  Referenced from: /usr/local/bin/ogr2ogr
  Reason: image not found
Trace/BPT trap: 5

Here is brew --config, brew doctor, brew install -v gdal 2>&1 gist link.
https://gist.github.com/adaromu/ce5ddcb83d8650a8fc4c
And here is gist link generate by brew gist-logs --config --doctor <formula name> https://gist.github.com/anonymous/11454021

I even tried brew install gdal --build-from-source, then another issue:

==> ./configure --prefix=/usr/local/Cellar/gdal/1.10.1_1 --mandir=/usr/local/Cel
checking for libtiff... using libtiff from /usr/local.
checking for TIFFScanlineSize64 in -ltiff... no
checking for XTIFFClientOpen in -lgeotiff... no
checking for XTIFFClientOpen in -lgeotiff... (cached) no
configure: error: We require at least GeoTIFF 1.2.1. Consider using the one supplied with GDAL

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
@adaromu
Copy link
Author

adaromu commented May 1, 2014

I found the reason. I reinstall mavericks recently which removed dylib files in /usr/local/lib. After manually brew uninstall proj, brew install proj and whole other dependent libs, it works now.

Is there any way to force reinstall with its all dependencies?

@adamv adamv closed this as completed May 3, 2014
@adamv adamv reopened this May 3, 2014
@adamv adamv added the usability label May 3, 2014
@adamv
Copy link
Contributor

adamv commented May 5, 2014

There isn't any command, but this has been requested before, see #23649.

@adamv adamv closed this as completed May 5, 2014
@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants