PHP gd JPEG 图像支持缺失

PHP gd JPEG 图像支持缺失

我有一台 centos 7 服务器,需要多个版本的 PHP。我正在编译 PHP 5.6,php 应用程序需要支持 GD Jpeg。我遇到了以下错误。

./configure --prefix=/opt/php-5.6.28 .... --with-freetype-dir --with-freetype-dir --with-gd --enable-gd-native-ttf --with-png-dir --with-jpeg-dir=/usr/local/lib/

–with-jpeg-dir = /usr/local/lib/或者/usr或者/usr/lib64..

输出:

checking for GD support... yes
checking for the location of libvpx... no
checking for the location of libjpeg... /usr/local/lib/
checking for the location of libpng... yes
checking for the location of libXpm... no
checking for FreeType 2... yes

已安装: yum 安装 libjpeg-devel gd-确定

返回: PHP gd JPEG 图像支持缺失。

查找库:

/usr/libjpeg.so
/usr/local/lib/libjpeg.so
/usr/lib64/libjpeg.so
/usr/lib/libjpeg.so

有人知道是否缺少任何库来安装或建立阴沉的链接吗?谢谢。

相关内容