我试图在RHEL6虚拟机上从源代码构建GCC,并且遇到了Catch 22.也就是说,我需要一个C编译器才能成功进行配置。解决方案似乎很简单 - 执行yum来解决依赖关系。但是,此虚拟机无法连接到Internet。如何在没有Internet连接的情况下为GCC安装C编译器? (RHEL6)
有没有人拥有包含预编译编译器的二进制或.rpm的源代码,从而简化安装?我搜索了,但找不到一个。或者,是否存在RHEL6命令来安装预编译的GCC版本?如果两者都不可能,我可以用什么样的C编译器来解决这个问题?
对于背景下,这是我收到的消息:
../gcc-4.7.2/configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-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 libitm support... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/gcc/gcc-build':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.