在编译完gd库等相应文件后,编译php文件的过程中提示一下错误;

configure: error: GD build test failed. Please check the config.log for details.

解决方法:

把php的编译参数:

--with-gd

修改为:

--with-gd=/usr/local/gd/

再次对php进行编译  ./configure ...