zlib編譯報錯:Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).

問題描述:
安裝zlib,在執行./configure --prefix=$PWD/_install 時出現報錯:
Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).

解決方法:

vi 打開configure 文件,刪除以下字段以避免將warn處理爲error :

echo “Checking for obsessive-compulsive compiler options…” >>
configure.log

if try $CC -c $CFLAGS $test.c; then : else echo “Compiler error
reporting is too harsh for $0 (perhaps remove -Werror).” | tee -a
configure.log leave 1 fi

wq 保存退出,在執行 ./configure … make && make install 編譯安裝就可以通過了。

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