dyld: Library not loaded: /usr/local/lib/libpng

环境:mac+php 5.4.26+nginx

php-fpm启动的时候提示

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



brew info libpng
//发现是因为libpng版本的问题,切换一下就可以了
brew switch libpng 1.5.18



你可能感兴趣的:(mac,brew,library,libpng,dyld)