我正在努力从 Linux Mint 18.3 上的源代码中获取 Python 3.7
gcc 的一些问题。
我使用的是过时版本的 gcc 吗?
下面是python3.7的configure脚本写到标准输出的内容
./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for python3.7... no
checking for python3... python3
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/boldi/Downloads/Python-3.7.3':
configure: error: C compiler cannot create executables
See `config.log' for more details
当我检查 config.log 时
我看到 gcc 选项 -V 有问题
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11)
configure:3909: $? = 0
configure:3898: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.