首页 > 代码库 > error: png.h not found.

error: png.h not found.

执行php安装

--enable-mbstring --enable-ftp --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --enable-session --with-mcrypt --with-curl


出现了第二次异常error: png.h not found.


解决办法:

yum install libpng-devel