虚拟机下centos6.3下安装gcc时出现以下问题怎么解决,执行configure命令,但无法产生makefile文件??
=============================================================================../gcc-4...
=============================================================================
../gcc-4.8.1/configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
=============================================================================
执行上面命令后
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-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 libitm support... yes
checking for libsanitizer support... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/tmp/gcc-build-4.8.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
============================================================================
gcc-4.8.1 由于无法连接到网络,已经有 GMP ,mpc,mpfr 三个了, 展开
../gcc-4.8.1/configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
=============================================================================
执行上面命令后
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-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 libitm support... yes
checking for libsanitizer support... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/tmp/gcc-build-4.8.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
============================================================================
gcc-4.8.1 由于无法连接到网络,已经有 GMP ,mpc,mpfr 三个了, 展开
2个回答
展开全部
已经提示了,要先有C编译器才能配置编译gcc-4.8.1,你先yum install gcc 安装一个低版本的gcc,然后使用这个gcc编译gcc-4.8.1看看,应该可以的。 安装好后貌似还要连接一下,这有个安装的步骤,你可以参考下:
http://ilovers.sinaapp.com/article/centos%E4%B8%8B%E5%AE%89%E8%A3%85gcc-481
http://ilovers.sinaapp.com/article/centos%E4%B8%8B%E5%AE%89%E8%A3%85gcc-481
2014-03-15
展开全部
去centos吧问吧
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询