mac osx中通过homebrew安装的libpng升级后apache报错的解决办法

升级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

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.