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

后端 未结 13 1394
刺人心
刺人心 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:14
    xcode-select --install
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    brew install pcre
    brew install libtool
    

    that's it.

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

    First :

    brew uninstall libffi
    

    Then :

    brew install libffi
    
    0 讨论(0)
  • 2020-12-05 10:19

    In my case I solve it with this link's file:

    ln -s /usr/local/Cellar/jpeg/8d/lib/libjpeg.8.dylib /usr/local/opt/jpeg/lib/libjpeg.8.dyli
    
    0 讨论(0)
  • 2020-12-05 10:19

    The response from kenorb is what worked for me + a little extra for safe measure: brew update freetype didn't have symlinks so: brew link freetype various other solutions I tried:

    brew remove imagemagick
    brew link jpeg libpng
    brew install imagemagick
    brew install libtiff
    brew uninstall libtool
    brew reinstall libtool --universal && brew unlink libtool && brew link libtool
    

    There's a good chance that this wasn't all necessary if I had found

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

    first. But I thought I would post my full process in case anyone runs into issues

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

    For me, I needed to fix XQuartz as brew doctor asked me too:

    Warning: Your XQuartz (2.7.6) is outdated Please install XQuartz 2.7.8: https://xquartz.macosforge.org

    It worked after that.

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

    For me it works with:

    sudo ln -s /usr/local/Cellar/libtool/2.4.2/lib/libltdl.7.dylib /usr/local/lib/libltdl.7.dylib
    
    0 讨论(0)
提交回复
热议问题