提示错误 Call to undefined function imagepng() in … 原因:macbook系统自带的 PHP5.5 的 GD 库有问题。 解决方法: 在终端运行:curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5 等待安装,然后就ok了。