在linux上安装php5.6版本提示GD2版本要高于2.1.0解决

错误详情:

错误分析:

像问题描述的那样,在相应文件夹里面没有找到对应的扩展,我进入对应文件查看,果然没有;

然后我查找了一下:

这不还是在里面的么?

但是:

版本确实低了;

解决办法:

其实php的源码包里面就有gd的扩展,不要指定路径就可以搞定了!

./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

--with-mcrypt=/usr/local/libmcrypt/ 

--with-mysqli=/usr/local/mysql/bin/mysql_config

--enable-soap

--enable-mbstring=all

--enable-sockets  

--without-pear

原文地址:https://www.cnblogs.com/eis13/p/5459024.html