linux64位編譯php遇到configure: error: GD build test failed. Please check the config.log for details

原文鏈接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.


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章