原文链接linux64位编译php遇到configure: error: GD build test failed. Please check the config.log for details
This error occures becuase the linker (ld) cannot find the jpeg library. You can fix this problem by editing the config.nice file inside the php directory and adding LDFLAGS='-L/path/to/lib' \ (注释:linux64位机器 此处应写为LDFLAGS='-L/usr/lib64' \) above the ./configure \ For example is your libjpeg.so resides inside /usr/local/lib, you'd add -L/usr/local/lib. Once you've edited the file, remove config.cache and run ./config.nice, after that make; make install; should work.
转载于:https://blog.51cto.com/myhumors/1386907
本文详细介绍了在Linux 64位环境下编译PHP时遇到GD库链接失败的问题,并提供了通过编辑配置文件来解决此问题的方法。包括如何在配置文件中添加LDFLAGS参数,确保链接器能找到JPEG库。

7690

被折叠的 条评论
为什么被折叠?



