免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 8532 | 回复: 24
打印 上一主题 下一主题

安装gcc出现问题,求助 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-04-19 19:59 |只看该作者 |倒序浏览
在安装gcc过程中出现问题,运行${srcdir}/configure,错误提示如下:
       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 gcc... no
          checking for cc... no
          checking for cl.exe... no
          configure: error: in `/opt/gcc-4.5.0':
          configure: error: no acceptable C compiler found in $PATH
          See `config.log' for more details.

        再检查包的依赖性时,发现glibc-devel-2.5-24.i386.rpm没有安装,于是我又安装glibc-devel-2.5-24.i386.rpm,系统又提示glibc-headers-2.5-24.i386.rpm没有安装
安装时提示:
            warning: glibc-headers-2.5-24.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
                  error: Failed dependencies:
                  glibc = 2.5-24 is needed by glibc-headers-2.5-24.i386
居然提示这个,我晕了
     望高手指点

论坛徽章:
0
2 [报告]
发表于 2010-04-19 20:22 |只看该作者
GCC是做什么用的?

既然你还没装GCC,你拿什么编译GCC?

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
3 [报告]
发表于 2010-04-19 20:45 |只看该作者
先yum安装系统自带的gcc

论坛徽章:
0
4 [报告]
发表于 2010-04-19 20:45 |只看该作者
回复 2# Celinde


    gcc是编译器

论坛徽章:
0
5 [报告]
发表于 2010-04-19 20:52 |只看该作者
回复 3# chenyx


    详细讲讲,我是菜鸟
   嘿嘿

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
6 [报告]
发表于 2010-04-19 20:57 |只看该作者
既然是CentOs,机器连上互联网,直接yum install -y gcc
就安装好了gcc,自动解决包依赖的问题

论坛徽章:
0
7 [报告]
发表于 2010-04-19 20:58 |只看该作者
回复 4# plgg0814


   
你都没有编译器,你用什么编译编译器?

论坛徽章:
0
8 [报告]
发表于 2010-04-19 21:09 |只看该作者
回复 6# chenyx


    现在装好了,可貌视还是缺少东西,这是我运行./configure后的提示:
   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 gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for the correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.


然后咋办?

论坛徽章:
0
9 [报告]
发表于 2010-04-19 21:10 |只看该作者
回复 7# Celinde


    大侠,你就一气说完吧,我真不懂,头一回弄

论坛徽章:
0
10 [报告]
发表于 2010-04-19 21:14 |只看该作者
2楼就说完了..

就是你这个系统无法通过编译安装gcc,只能先安装二进制包
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP