**
發現其實不然,至少在redhat 4上根本不是上面的原因:
[root@localhost rpms]# rpm -ivh gcc-3.4.6-9.i386.rpm
warning: gcc-3.4.6-9.i386.rpm: v3 dsa signature: nokey, key id db42a60e
error: failed dependencies:
glibc-devel >= 2.2.90-12 is needed by gcc-3.4.6-9.i386
suggested resolutions:
/var/spool/up2dateglibc-devel-2.3.4-2.39.i386.rpm
[root@localhost rpms]# rpm -ivh glibc-devel-2.3.4-2.39.i386.rpm
warning: glibc-devel-2.3.4-2.39.i386.rpm: v3 dsa signature: nokey, key id db42a60e
error: failed dependencies:
glibc-headers is needed by glibc-devel-2.3.4-2.39.i386
glibc-headers = 2.3.4-2.39 is needed by glibc-devel-2.3.4-2.39.i386
suggested resolutions:
/var/spool/up2dateglibc-headers-2.3.4-2.39.i386.rpm
[root@localhost rpms]# rpm -ivh glibc-headers-2.3.4-2.39.i386.rpm
warning: glibc-headers-2.3.4-2.39.i386.rpm: v3 dsa signature: nokey, key id db42a60e
error: failed dependencies:
kernel-headers is needed by glibc-headers-2.3.4-2.39.i386
kernel-headers >= 2.2.1 is needed by glibc-headers-2.3.4-2.39.i386
suggested resolutions:
/var/spool/up2dateglibc-kernheaders-2.4-9.1.100.el.i386.rpm
[root@localhost rpms]# rpm -ivh glibc-kernheaders-2.4-9.1.100.el.i386.rpm
warning: glibc-kernheaders-2.4-9.1.100.el.i386.rpm: v3 dsa signature: nokey, key id db42a60e
preparing...
########################################### [100%]
1:glibc-kernheaders
########################################### [100%]
[root@localhost rpms]# rpm -ivh glibc-headers-2.3.4-2.39.i386.rpm
warning: glibc-headers-2.3.4-2.39.i386.rpm: v3 dsa signature: nokey, key id db42a60e
preparing...
########################################### [100%]
1:glibc-headers
########################################### [100%]
[root@localhost rpms]# rpm -ivh glibc-devel-2.3.4-2.39.i386.rpm
warning: glibc-devel-2.3.4-2.39.i386.rpm: v3 dsa signature: nokey, key id db42a60e
preparing...
########################################### [100%]
1:glibc-devel
########################################### [100%]
[root@localhost rpms]# rpm -ivh gcc-3.4.6-9.i386.rpm
warning: gcc-3.4.6-9.i386.rpm: v3 dsa signature: nokey, key id db42a60e
preparing...
########################################### [100%]
1:gcc
########################################### [100%]
看上面的安裝記錄應該會發現:只要安裝上
glibc-kernheaders
就能繼續往下安裝了
按順序裝
glibc-kernheaders-2.4-9.1.100.el.i386.rpm
glibc-headers-2.3.4-2.39.i386.rpm
glibc-devel-2.3.4-2.39.i386.rpm
gcc-3.4.6-9.i386.rpm
-------------------------------
suggested resolutions:
/var/spool/up2dateglibc-devel-2.3.4-2.39.i386.rpm
這句話,可以從up2date開始看起,後面的glibc-devel-2.3.4-2.39.i386.rpm是缺少的rpm包。
裝完gcc,還要裝g++
按順序裝
libstdc++-devel-3.4.6-9.i386.rpm
gcc-c++-3.4.6-9.i386.rpm
就可以了
RedHat下GCC及G 的安裝
redhat下gcc及g 的安裝 gcc的安裝 切換到安裝光碟目錄下 mount dev cdrom mnt cdrom cd mnt cdrom 安裝gcc依賴的 rpm程式,必須按照順序依次執行 rpm ivh kernel headers 2.6.18 164.el5.i386.rpm rpm...
redhad安裝gcc問題 解決依賴問題
在安裝gcc時需要cpp和cloog ppl 但是在安裝cpp的時候需要這個依賴 libmpfr.so.1 64bit is needed by cpp 4.4.6 3.el6.x86 64 安裝cloog ppl的時候需要這2個依賴 libppl.so.7 64bit is needed by c...
Redhat 7 5 安裝ntp服務各種問題解決
問題1 已配置好yum源,執行yum y install ntp報錯 問題分析 根據報錯資訊,yum在安裝ntp時,要求乙個較低版本的ntpdate 但此時我們的伺服器上已經安裝了乙個較高版本的ntpdate,所以報錯。問題解決 使用yum remove ntpdate 4.3.6p5 28.el7...