Brew doctor: dyld: Library not loaded & Error: No available formula for zlib

后端 未结 13 1397
刺人心
刺人心 2020-12-05 09:34

When I brew doctor I get the following errors:

dyld: Library not loaded: /usr/lib/libltdl.7.dylib
  Referenced from: /usr/local/bin/php
  Reason         


        
相关标签:
13条回答
  • 2020-12-05 10:25

    I experienced the same error in the process of installing AFNI. Installing PyQt, as suggested here, fixed the issue resulting from OSX 10.11 compatibility.

    brew install pyqt
    
    0 讨论(0)
  • 2020-12-05 10:26

    Try:

    brew tap homebrew/dupes
    

    See: https://github.com/josegonzalez/homebrew-php/pull/219

    0 讨论(0)
  • 2020-12-05 10:30

    In my case I had

    dyld: Library not loaded: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python
      Referenced from: /usr/local/Cellar/macvim/8.2-162/MacVim.app/Contents/MacOS/Vim
      Reason: image not found
    

    brew unlink python && brew link python and boom, fixed.

    0 讨论(0)
  • 2020-12-05 10:33

    Try to re-install libtool by:

    brew reinstall libtool --universal && brew unlink libtool && brew link libtool
    

    If that doesn't help, try removing libtool completely, and then retry the steps above:

    brew uninstall libtool
    

    If it still doesn't work after trying the steps above, check to see if you have the DYLD_FALLBACK_LIBRARY_PATH variable defined somewhere on the system (e.g. ~/.profile) and try unsetting it before trying the steps above again.


    Other commands which could be useful for identifying the issue:

    $ libtool --version
    $ whereis libtool
    $ set | grep DYLD_FALLBACK_LIBRARY_PATH
    $ echo $DYLD_FALLBACK_LIBRARY_PATH
    
    0 讨论(0)
  • 2020-12-05 10:35

    None of them work I personally reinstalled Watchman like so:

    brew uninstall watchman
    brew reinstall watchman
    
    0 讨论(0)
  • 2020-12-05 10:37

    if you have an error about pcre like this :

    dyld: Library not loaded: /usr/local/opt/pcre/lib/libpcre.1.dylib
      Referenced from: /usr/local/Cellar/watchman/4.7.0/libexec/bin/watchman
      Reason: image not found
    Abort trap: 6
    

    you need to link pcre.

    brew link --overwrite pcre
    
    0 讨论(0)
提交回复
热议问题