当我尝试从源代码构建gcc时,它失败并出现以下错误:
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libcilkrts support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libmpx support... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/admin/test/gcc-6.3.0':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
任何解决此问题的方法..?
答案 0 :(得分:2)
对于安装C编译器:
的CentOS /红帽
yum install gcc gcc-c++ autoconf automake
或
基于Debian
sudo apt-get install build-essential