0

我正在努力做这几个小时。PHP 不会针对 libjpeg 进行编译。

这就是 .configure 所说的:

checking for the location of libvpx... no
checking for the location of libjpeg... /usr
checking for the location of libpng... yes
checking for the location of libXpm... no

所以不,是,不是,不是。

jpeglib.h 位于 /usr/include/jpeglib.h libjpeg.so 位于 /usr/lib/libjpeg.so

我通读了 .configure 脚本,但找不到快速解决方案。我正在运行 Ubuntu 8.04

对此有任何提示吗?

编辑:freetype 库似乎也发生了同样的情况。

4

2 回答 2

0

添加--with-gd --with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/

于 2013-04-30T08:42:01.567 回答
0

在 CentOS 5 系统上(两者jpeglib.h和分别libjpeg.so位于/usr/include/jpeglib.h和中),我在运行脚本/usr/lib/libjpeg.so时必须包含以下选项:configure

--with-gd --with-jpeg-dir=/usr --with-freetype-dir=/usr

这为 JPEG 和 Freetype 提供了 GD 支持(我不需要为 GD 做任何特别的事情来支持 PNG 或 GIF)。

注意:如果您在注意到 GD 不包含对这些库的支持之前已经编译了 PHP,则必须make clean在重新运行configure脚本后运行。

于 2017-03-31T13:58:57.033 回答