Error in Linux source code package configuration PHP: Configure:error:GD build test failed. Please check the Config.log
Ps: Correct answer this question, add 200 points. Not enough can also be added.
Thank you, sir. No words ah ... Originally already built the source environment, the result because the PHP version is too high, cannot use Zend Zendoptimizer. I unloaded the PHP5.6.4 and wanted to install a 5.2.6: The result always goes wrong at configuration: The configuration statement: #./configure--prefix=/usr/local/php/--WITH-CONFIG-FILE-PATH=/USR /local/php/etc/--with-apxs2=/usr/local/apache2/bin/apxs--with-mysql=/usr/local/mysql/--with-libxml-dir=/usr/ local/libxml2/--with-jpeg-dir=/usr/local/jpeg6/--with-png-dir=/usr/local/libpng/--with-freetype-dir=/usr/local /freetype/--WITH-GD=/USR/LOCAL/GD2--with-mcrypt=/usr/local/libmcrypt/--with-mysqli=/usr/local/mysql/bin/mysql_ Config--enable-soap--enable-mbstring=all--enable-sockets error message is: Configure:error:GD build test failed.
Please check the Config.log for details. # cat Config.log found the following error (due to the word limit, some lines omitted below):/usr/local/gd2/lib/libgd.so:undefined reference to ' Jpeg_destroy_ decompress@libjpeg_6.2 '/usr/local/gd2/lib/libgd.so:undefined reference to ' jpeg_createcompress@libjpeg_6.2 '/usr/ local/gd2/lib/libgd.so:undefined reference to ' jpeg_read_header@libjpeg_6.2 '/usr/local/gd2/lib/libgd.so:undefined reference to ' jpeg_read_scanlines@libjpeg_6.2 '/usr/local/gd2/lib/libgd.so:undefined Reference to ' jpeg_start_compress@libjpeg_6.2 '/usr/local/gd2/lib/libgd.so:undefined reference to ' Jpeg_destroy_ compress@libjpeg_6.2 ' .../usr/local/gd2/lib/libgd.so:undefined reference to ' jpeg_std_error@libjpeg_6.2 '/usr/, ... The error of local/gd2/lib/libgd.so:undefined reference to ' jpeg_finish_compress@libjpeg_6.2 ' has appeared many times in Config.log this file. I have Jpeg6, re-installed GD, can not. How to solve, thank you very much.
This problem has been resolved by itself
./configure--prefix=/usr/local/php/--with-apxs2=/usr/local/apache2/bin/apxs--with-config-file-path=/usr/local/ php/lib/--with-config-file-scan-dir=/usr/local/etc/--with-zlib--with-curl--enable-bcmath--with-jpeg-dir-- With-png-dir--with-xpm-dir--with-freetype-dir--with-gd--with-mhash--enable-mbstring-- With-libxml-dir--with-iconv-dir--with-pcre-dir--enable-mysqlnd--with-mysql=mysqlnd--with-mysqli=mysqlnd
Check to see if there is a library incomplete.
install PHP 5.5.25 Plus parameters--with-gd=/usr/local/gd
/usr/local/gd = 2.0.35 Upgrade 2.44 After the error is resolved as follows:
[Root@s php-5.5.25]#./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache/bin/apxs--with-mysql=/usr/ local/mysql/--with-libxml-dir=/usr/local/libxml2/--with-png-dir=/usr/local/libpng/--with-jpeg-dir=/usr/local/ jpeg/--with-freetype-dir=/usr/local/freetype/--with-gd--with-mcrypt=/usr/local/libmcrypt/--with-mysqli=/usr/ Local/mysql/bin/mysql_config--enable-soap--enable-mbstring=all--enable-sockets
Solution:--WITH-GD=/USR/LOCAL/GD2
Switch to System GD try
--WITH-GD upgrade PHP GD library 2.0.35 for GD-2.44 solution.