无法在自定义linux环境中安装gcc

无法在自定义linux环境中安装gcc,linux,gcc,Linux,Gcc,当我尝试从源代码构建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 whe

当我尝试从源代码构建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.

有没有办法解决这个问题?

对于安装C编译器:

森托斯/红帽

yum install gcc gcc-c++ autoconf automake

基于Debian的

sudo apt-get install build-essential    

你知道你需要安装一个C编译器来构建GCC吗?你需要特别阅读这篇文章,它清楚地表明你需要一个已经安装的编译器来构建GCC。谢谢Jonathan,我已经浏览了这些链接。如何检查那里是否已经安装了编译器..?嘿,Samuel,我的机器中没有可用的包管理器。谢谢。