发新话题
打印

急!!!请问怎么安装 cc

急!!!请问怎么安装 cc

我是text 模式,怎么安装cc
我想装gcc 没有cc能安装gcc 吗
请指教      

TOP

看你是什么linux,如果没有包管理软件就不行了
没有鸡如何生蛋?      
15 is too short

TOP

呵呵。教主说的是。我的是linux 7.2应该怎么安装请指点。。      
帮人=帮已。如果我知道我一定说。。。。。

TOP

哪位大侠快指点一下啊。怎么装cc 编译器。
不然我就安装不了其他软件。
./configure: cc: command not found
*** The command 'cc -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.      
帮人=帮已。如果我知道我一定说。。。。。

TOP

那应该没问题,直接用光盘里的gcc 得rpm 包就行了,具体的去翻翻以前的帖子,应该有很多      
15 is too short

TOP

各位看官请看:
[root@test bak]# rpm -ivh gcc-3.2-7.i386.rpm
error: failed dependencies:
        cpp = 3.2-7 is needed by gcc-3.2-7
        glibc-devel >= 2.2.90-12 is needed by gcc-3.2-7
        libgcc >= 3.2-7 is needed by gcc-3.2-7
        rpmlib(PartialHardlinkSets) <= 4.0.4-1 is needed by gcc-3.2-7
因为还要其他包的支持。有些还安装不上去。显示同样的信息。
现在我想用tar那个包装,但执行

[root@test gcc-3.4.0]# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
./configure: cc: command not found
*** The command 'cc -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
现在我请问。CC 编译器到底怎么安装。或是怎么用。请高手指点我。
谢谢。      
帮人=帮已。如果我知道我一定说。。。。。

TOP

没有鸡如何生蛋?
必须仔仔细细一个一个安装RPM包      
15 is too short

TOP

说的没错
gcc安装所需要的包
    cpp-2.96-110.i386.rpm
  binutils-2.11.93.0.2-11.i386.rpm
  glibc-2.2.5-34.i386.rpm
  glibc-kernheaders-2.4-7.14.i386.rpm
  glibc-common-2.2.5-34
  glibc-devel-2.2.5-34.i386.rpm
  gcc-2.96-110.i386.rpm
  make-3.79.1-8.i386.rpm
我没有找到glibc-devel-2.2.5-34.i386.rpm包用
glibc-devel-2.2.93-5.i386.rpm
显示
error: failed dependencies:
       glibc = 2.2.93 is needed by glibc-devel-2.2.93-5
同样gcc-3.2-7.i386.rpm 安装不上。
请问????什么原因。是不是有的包不匹配。
哪里可以下载到这些包。不太容易吧。      
帮人=帮已。如果我知道我一定说。。。。。

TOP

发新话题