zlib编译报错:Compiler error reporting is too harsh for ./configure (perhaps remove -

论坛 期权论坛 期权     
匿名技术用户   2020-12-27 12:45   14739   0

问题描述:
安装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 编译安装就可以通过了。

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP