升级libpng到1.6版本后,重启apache的时候报如下错误:

httpd: Syntax error on line 119 of /private/etc/apache2/httpd.conf: Cannot load /usr/local/opt/php53/libexec/apache2/libphp5.so into server: dlopen(/usr/local/opt/php53/libexec/apache2/libphp5.so, 10): Library not loaded: /usr/local/lib/libpng15.15.dylib\n  Referenced from: /usr/local/opt/php53/libexec/apache2/libphp5.so\n  Reason: image not found

解决办法:

cp /usr/local/Cellar/libpng/1.5.18/lib/libpng15.15.dylib /usr/local/lib/libpng15.15.dylib