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

后端 未结 15 2105
你的背包
你的背包 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:15

    I am sharing this as I had the same issue when using PHP5.4. Originally, I had PHP5.6 and it was working fine. Then I downgraded to php5.4 as my app only supports PHP5.4.

    Then this error came up. I noticed that I have libjpeg.9.dylib and PHP5.4 is looking for libjpeg.8.dylib.

    Doing the following sorted the issue:

    brew uninstall php54
    brew install --build-from-source php54
    

提交回复
热议问题