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.
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。