dyld: Library not loaded: /usr/local/lib/libjpeg.8.dylib - homebrew php

后端 未结 15 2068
你的背包
你的背包 2020-12-07 09:34

PHP was not working for me as I was encountering this libpng issue, so I reinstalled a new version with Homebrew.

However, I\'m getting a similar error with

15条回答
  •  醉梦人生
    2020-12-07 10:02

    I had the same problem and I solved it by downloading the libjpeg tarball manuallu from here and running:

    tar zxvf jpegsrc.v6b.tar.gz
    cd jpeg-6b
    cp /usr/share/libtool/config.sub .
    cp /usr/share/libtool/config.guess .
    ./configure --enable-shared --enable-static
    make
    sudo make install
    
    sudo ranlib /usr/local/lib/libjpeg.a #Optionally
    

提交回复
热议问题