`

linux下安装gcc Red Hat Enterprise Linux AS release 4 (Nahant Update 1)(转)

 
阅读更多
原文:http://apps.hi.baidu.com/share/detail/45946626
安装 gcc之前google了一下,发现这是个麻烦事,心里也做好了准备,花费了一下午终于搞定,
事先确定要安装符合rhel4的rpm,由此找到下面这个网址:
里面很全,基本涵盖了安装gcc所需的所有其他rpm
1)安装gcc
rpm -ivh gcc-3.3.2-6.i386.rpm
warning: gcc-3.4.6-9.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
error: Failed dependencies:
        binutils >= 2.15.92.0.2-18 is needed by gcc-3.4.6-9.i386
        cpp = 3.4.6-9 is needed by gcc-3.4.6-9.i386
        glibc-devel >= 2.2.90-12 is needed by gcc-3.4.6-9.i386
        libgcc >= 3.4.6-9 is needed by gcc-3.4.6-9.i386
    Suggested resolutions:
        glibc-devel-2.3.4-2.9.i386.rpm
失败
根据错误信息--〉1-1,1-2,1-3,1-4
1-1)更新binutils
rpm -Uvh binutils-2.15.92.0.2-24.i386.rpm
1-2)更新cpp
rpm -Uvh cpp-3.4.6-9.i386.rpm
1-3)更新libgcc
rpm -Uvh libgcc-3.4.6-9.i386.rpm
1-4)更新glibc-devel
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 443e1821
error: Failed dependencies:
        glibc = 2.3.4-2.39 is needed by glibc-devel-2.3.4-2.39.i386
        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:
        glibc-headers-2.3.4-2.9.i386.rpm
根据错误信息---〉1-4-1,1-4-2
1-4-1)更新glibc
warning: glibc-2.3.4-2.39.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
error: Failed dependencies:
        glibc-common = 2.3.4-2.39 is needed by glibc-2.3.4-2.39.i386
根据错误信息--〉1-4-1-1
1-4-1-1)
rpm -Uvh glibc-common-2.3.4-2.39.i386.rpm
warning: glibc-common-2.3.4-2.39.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
error: Failed dependencies:
        glibc-common = 2.3.4-2.9 is needed by (installed) glibc-2.3.4-2.9.i686
又出错,强行更新,反正这个也不会用,以及依赖它的rpm也要跟新
rpm -Uvh glibc-common-2.3.4-2.39.i386.rpm --nodeps --force
返回到1-4-1)
rpm -Uvh glibc-2.3.4-2.39.i386.rpm
1-4-2)安装glibc-headers
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 443e1821
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:
        glibc-kernheaders-2.4-9.1.87.i386.rpm
根据出错信息---〉1-4-2-1
1-4-2-1)安装glibc-kernheaders
rpm -ivh glibc-kernheaders-2.4-9.1.100.EL.i386.rpm
返回1-4-2 )
rpm -ivh glibc-headers-2.3.4-2.39.i386.rpm
返回1-4)
rpm -ivh glibc-devel-2.3.4-2.39.i386.rpm
返回1)
rpm -ivh gcc-3.4.6-9.i386.rpm
安装完成,gcc -v
显示信息
gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)
分享到:
评论

相关推荐

    Red_Hat_Enterprise_Linux_5_安装Oracle10G

    在`/etc/redhat-release`文件中,将版本信息改为Red Hat Enterprise Linux AS release 4 (Nahant Update 4),安装完成后记得恢复原状。 最后,设置Oracle用户的环境变量,特别是`ORACLE_BASE`,它指示Oracle软件的...

    查看Linux系统版本主要采用哪些方法

    例如,“redhat-release-4AS-2.4”对应的是Red Hat Enterprise Linux AS 4 Update 1。通过查阅对应表,可以准确得知系统的确切版本。 ### 注意事项 - 第二种和第三种方法仅适用于Red Hat系列的Linux发行版,其他...

    linux 下安装oracle

    - **方法一**:编辑`/etc/redhat-release`文件,并将其中的版本信息改为`Red Hat Enterprise Linux AS release 4 (Nahant Update 4)`。 - **方法二**:修改Oracle安装包中的`install/oraparam.ini`文件,在`...

    如何在red_hat_Enterprise_5安装oracle11g

    Red Hat Enterprise Linux AS release 4 (Nahant Update 4) ``` **2. 配置 Oracle 用户环境变量** ```shell # su - oracle $ vi ~/.bash_profile ``` 添加以下内容: ```shell export ORACLE_BASE=/u01/app/oracle ...

    oracle在linux5下 装

    将文件内容中的 “Red Hat Enterprise Linux Server release 5 (Tikanga)” 修改为 “Red Hat Enterprise Linux AS release 4 (Nahant Update 4)”。 ##### 3. 修改系统内核参数 为了满足 Oracle 的需求,需要调整...

    linux下安装oracle客户端

    - **系统版本**:确认当前使用的Linux发行版与Oracle客户端的兼容性,本例中为Red Hat Enterprise Linux Release 4 (Nahant Update 2),内核版本为2.6.9.22。 ### 2. 安装包下载与解压 下载Oracle 10.2.0.1客户端...

    oracle10g安装文档

    Red Hat Enterprise Linux AS release 4 (Nahant Update 4) ``` - **修改 Oracle 安装文件的配置信息**:编辑安装目录下的 `oraparam.ini` 文件,例如: ```bash vi /home/database/install/oraparam.ini # ...

    oracle10203 在 linux AS4.6 上的安装手记

    - 使用 `cat /etc/issue` 和 `uname -r` 来确认 Linux 的发行版本号,确认为 Red Hat Enterprise Linux AS release 4 (Nahant Update 6),内核版本为 2.6.9-67.EL。 **2. 架构确认** - 使用 `uname -m` 检查系统...

    redhat5安装oracle10g详解

    RHEL 5,因此需要修改 `/etc/redhat-release` 文件中的版本信息,将 “Red Hat Enterprise Linux Server release 5 (Tikanga)” 改为 “Red Hat Enterprise Linux Server release 4 (Nahant Update 4)”。...

    Redhat linux 9下安装oracle10g.docx

    - 示例输出: `Red Hat Enterprise Linux ES release 4 (Nahant Update 5)` - **解释**: 当前系统版本为 Red Hat Enterprise Linux ES 4 (Nahant Update 5),这符合 Oracle 10g 的支持列表。 **5. 检查内核版本** ...

    linux下oracle安装—完整版

    更改 `/etc/redhat-release` 文件中的版本信息为 Red Hat Enterprise Linux Server release 5 (Tikanga),如果当前版本为 Red Hat Enterprise Linux AS release 4 (Nahant Update 4)。 5. **修改 pam.d/login 配置...

    RHEL6.1安装oracle 10G

    例如,可以将“Red Hat Enterprise Linux Workstation release 6.0 (Santiago)”改为“Red Hat Enterprise Linux AS release 3 (Taroon)”或“Red Hat Enterprise Linux AS release 4 (Nahant Update 4)”。...

Global site tag (gtag.js) - Google Analytics