具体错误是:
checking for gcc... /usr/bin/gcc checking resolved symbolic links for CC... no symlink configure: The C compiler (located as /usr/bin/gcc) does not seem to be the required gcc compiler. configure: The result from running with --version was: "" configure: error: A gcc compiler is required. Try setting --with-tools-dir. configure exiting with result code 1
直接搜索开始的一段是找不到的,因为文本样子如下:
$as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler. as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5
打开文件common/autoconf/generated-configure.sh,搜索compiler is required
注释或把报错命令改为echo即可。