問題描述:
安裝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.logif 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 編譯安裝就可以通過了。