有那位高人指导下!在linux下安装使用c. c++
最近想在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 编辑 ] 1.Download/install:
ftp://ftp.rpmfind.net/linux/redhat/updates/7.0/en/os/i386//gcc-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/redhat/7.0/en/os/i386/RedHat/RPMS//binutils-2.10.0.18-1.i386.rpm
rpm -Uvh binutils-2.10.0.18-1.i386.rpm
3. Download/install:
ftp://ftp.rpmfind.net/linux/redhat/updates/7.0/en/os/i386//cpp-2.96-69.i386.rpm
rpm -Uvh cpp-2.96-69.i386.rpm
4. Download/install:
ftp://ftp.rpmfind.net/linux/redhat/7.0/en/os/i386/RedHat/RPMS//glibc-devel-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/redhat/7.0/en/os/i386/RedHat/RPMS//kernel-headers-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
页:
[1]