configure: error: C compiler cannot create executables

编译时,出现如下错误:

checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/quantum6/doubango/doubango':
configure: error: C compiler cannot create executables
See `config.log' for more details

打开config.log,搜索error,看到如下错误:

configure:3866: $? = 0
configure:3855: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3866: $? = 1
configure:3855: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.

意思是什么?不认为-V。

怎么解决?

  • 手工修改configure
  • 运行
autoreconf -fiv
发布了2445 篇原创文章 · 获赞 299 · 访问量 173万+

猜你喜欢

转载自blog.csdn.net/quantum7/article/details/104164748