dyld: Library not loaded: /usr/local/lib/libpng16.16.dylib with anything php related

后端 未结 11 1012
攒了一身酷
攒了一身酷 2020-11-28 05:01

Using any php application results in:

dyld: Library not loaded: /usr/local/lib/libpng15.15.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
         


        
11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 05:25

    It's because there's no symlinks for libpng. You need to link libpng again.

    brew unlink libpng && brew link libpng
    

    And you may get some error. I fixed that error by correcting permission. Maybe it's because of uninstalled macports.

    sudo chown -R yourid:staff /usr/local/share/man/
    

    Create link again and it'll work.

提交回复
热议问题