萍聚社区-德国热线-德国实用信息网

 找回密码
 注册

微信登录

微信扫一扫,快速登录

萍聚头条

查看: 2087|回复: 1

有那位高人指导下!在linux下安装使用c. c++

[复制链接]
发表于 2008-11-28 16:21 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册 微信登录

x
最近想在LINUX red hat里编辑调试c,最后生成linux的可执行文件。

可是第一步就卡了,在网上搜了不少资料,就是哪哪都有转载的--如何在linux中安装gcc编译器? http://ks.cn.yahoo.com/question/1306120104591.html

也尝试做了,可是在%make就停下来了,最后就是安装都不行。

然后尝试其他办法,yum install gcc
甚至都想借用eclipse+plugin了, yum list kdevelop 后 yum install kdevelop
也不知道是不是方法步骤不对,反正怎么都不行,愁死啦!$NO$

那位高手能够指点一二啊:mad:
re

[ 本帖最后由 fanfan115 于 2008-11-28 15:42 编辑 ]
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
发表于 2008-12-1 14:52 | 显示全部楼层
1.  Download/install:
      ftp://ftp.rpmfind.net/linux/redh ... cc-2.96-69.i386.rpm
      rpm -Uvh gcc-2.96-69.i386.rpm

      error: failed dependencies:
              binutils >= 2.9.5.0.41 is needed by gcc-2.96-69
              cpp = 2.96 is needed by gcc-2.96-69
              glibc-devel is needed by gcc-2.96-69

   2. Download/install:
      ftp://ftp.rpmfind.net/linux/redh ... .10.0.18-1.i386.rpm
      rpm -Uvh binutils-2.10.0.18-1.i386.rpm
   3. Download/install:
      ftp://ftp.rpmfind.net/linux/redh ... pp-2.96-69.i386.rpm
      rpm -Uvh cpp-2.96-69.i386.rpm
   4. Download/install:
      ftp://ftp.rpmfind.net/linux/redh ... -2.1.92-14.i386.rpm
      rpm -Uvh glibc-devel-2.1.92-14.i386.rpm

      error: failed dependencies:
              kernel-headers   is needed by glibc-devel-2.1.92-14
              kernel-headers >= 2.2.1 is needed by glibc-devel-2.1.92-14

   5. Download/install:
      ftp://ftp.rpmfind.net/linux/redh ... 2.4.0-0.26.i386.rpm
      rpm -Uvh kernel-headers-2.4.0-0.26.i386.rpm
   6. Reattempt installation of your already downloaded glibc-devel-2.1.92-14.i386.rpm
      rpm -Uvh glibc-devel-2.1.92-14.i386.rpm
   7. Reattempt installation of your already downloaded gcc-2.96-69.i386.rpm
      rpm -Uvh gcc-2.96-69.i386.rpm
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
您需要登录后才可以回帖 登录 | 注册 微信登录

本版积分规则

手机版|Archiver|AGB|Impressum|Datenschutzerklärung|萍聚社区-德国热线-德国实用信息网 |网站地图

GMT+2, 2024-4-28 18:47 , Processed in 0.062970 second(s), 20 queries , MemCached On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表