Author : Tansf
安装gcc后,你的系统就具有编译c/c++等源码的功能,我的安装过程如下
注意:要把安装过程中所用到的软件包复制到相关的目录
1.
输入命令rpm -i gcc-3.2.3-34.i386.rpm
error: Failed dependencies:
cpp = 3.2.3-34 is needed by gcc-3.2.3-34
glibc-devel >= 2.2.90-12 is needed by gcc-3.2.3-34
libgcc >= 3.2.3-34 is needed by gcc-3.2.3-34
Suggested resolutions:
glibc-devel-2.3.2-95.3.i386.rpm
2.
输入命令rpm -i gcc-3.2.3-34.i386.rpm glibc-devel-2.3.2-95.20.i386.rpm libgcc-3.2.3-34.i386.rpm cpp-3.2.3-34.i386.rpm
error: Failed dependencies:
glibc-headers is needed by glibc-devel-2.3.2-95.20
glibc-headers = 2.3.2 is needed by glibc-devel-2.3.2-95.20
Suggested resolutions:
glibc-headers-2.3.2-95.3.i386.rpm
3.
输入命令rpm -i gcc-3.2.3-34.i386.rpm glibc-devel-2.3.2-95.20.i386.rpm libgcc-3.2.3-34.i386.rpm cpp-3.2.3-34.i386.rpm glibc-headers-2.3.2-95.20.i386.rpm
error: Failed dependencies:
kernel-headers is needed by glibc-headers-2.3.2-95.20
kernel-headers >= 2.2.1 is needed by glibc-headers-2.3.2-95.20
Suggested resolutions:
glibc-kernheaders-2.4-8.34.i386.rpm
[root@remote_server eyesompack]#
4. 输入以下才能成功安装
rpm -Uvh gcc-3.2.3-34.i386.rpm glibc-devel-2.3.2-95.20.i386.rpm libgcc-3.2.3-34.i386.rpm cpp-3.2.3-34.i386.rpm glibc-headers-2.3.2-95.20.i386.rpm glibc-kernheaders-2.4-8.34.i386.rpm
5.
安装后输入命令gcc,则有如下返回
gcc: no input files