dyld: Library not loaded: /usr/lib/libltdl. 7.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
Error: No available formula for zlib
File libltdl. 7. dylib is not in my /usr/lib directory, but there are several other .dylib files.
I run 10.8.1 and the latest version of Xcode (4.4.1) and its command line tool installation.
Any ideas how to solve these errors?
< pre>brew reinstall libtool –universal && brew unlink libtool && brew link libtool
If this does not help, please try to remove libtool completely, and then retry the above steps:
brew uninstall libtool
If it still doesn’t work after trying the above steps, check if you have DYLD_FALLBACK_LIBRARY_PATH variable defined somewhere on the system (e.g. ~/.profile) and try to reset Try the above steps again before it.
Other commands that can be used to identify the problem:
$ libtool --version
$ whereis libtool
$ set | grep DYLD_FALLBACK_LIBRARY_PATH
$ echo $DYLD_FALLBACK_LIBRARY_PATH
When I brew doctor I get the following error:
dyld : Library not loaded: /usr/lib/libltdl.7.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
Error: No available formula for zlib
The file libltdl.7.dylib is not in my /usr/lib directory, but there are several other .dylib files.
I run 10.8.1 and the latest version of Xcode (4.4.1) and its command line tool installation.
Any ideas how to solve these errors?
Try to reinstall libtool:
brew reinstall libtool --universal && brew unlink libtool && brew link libtool
If this does not help, please try to remove libtool completely, and then retry the above steps:
brew uninstall libtool
< p>If it still doesn’t work after trying the above steps, check if you have DYLD_FALLBACK_LIBRARY_PATH variable defined somewhere on the system (for example ~/.profile), and try the above steps again before trying to reset it.
Other commands that can be used to identify the problem:
$ libtool --version
$ whereis libtool
$ set | grep DYLD_FALLBACK_LIBRARY_PATH
$ echo $DYLD_FALLBACK_LIBRARY_PATH