提示错误 Call to undefined function imagepng() in …

原因:macbook系统自带的 PHP5.5 的 GD 库有问题。

解决方法:
在终端运行:curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5
等待安装,然后就ok了。
posted @ 2015-11-07 17:44  hereim  阅读(364)  评论(0)    收藏  举报