安装php过程中的错误和解决方式

centos6.5 32位系统;

checking for the location of libpng... yes
checking for the location of libXpm... no
checking for FreeType 2... yes
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
If configure fails try --with-vpx-dir=<DIR>
configure: error: jpeglib.h not found.

解决方法:

yum install libjpeg libpng freetype libjpeg-devel libpng-devel freetype-devel -y

若是64位系统

解决方法:

yum install libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 -y


你可能感兴趣的:(PHP)