天天看點

configure: The C compiler (located as /usr/bin/gcc) does not seem to be the required gcc compiler.

具體錯誤是: 

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.      

打開檔案common/autoconf/generated-configure.sh,搜尋compiler is required

注釋或把報錯指令改為echo即可。

繼續閱讀