惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

AI
AI
TaoSecurity Blog
TaoSecurity Blog
H
Heimdal Security Blog
Help Net Security
Help Net Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Microsoft Azure Blog
Microsoft Azure Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
大猫的无限游戏
大猫的无限游戏
N
News | PayPal Newsroom
V2EX - 技术
V2EX - 技术
博客园 - 【当耐特】
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
Secure Thoughts
C
CERT Recently Published Vulnerability Notes
罗磊的独立博客
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Privacy & Cybersecurity Law Blog
有赞技术团队
有赞技术团队
S
Schneier on Security
S
SegmentFault 最新的问题
Google Online Security Blog
Google Online Security Blog
H
Hacker News: Front Page
The Last Watchdog
The Last Watchdog
Schneier on Security
Schneier on Security
PCI Perspectives
PCI Perspectives
IT之家
IT之家
Project Zero
Project Zero
博客园 - 司徒正美
P
Privacy International News Feed
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Jina AI
Jina AI
Security Latest
Security Latest
Hacker News - Newest:
Hacker News - Newest: "LLM"
腾讯CDC
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
C
Check Point Blog
aimingoo的专栏
aimingoo的专栏
V
Vulnerabilities – Threatpost
W
WeLiveSecurity
NISL@THU
NISL@THU
Webroot Blog
Webroot Blog
N
Netflix TechBlog - Medium
L
Lohrmann on Cybersecurity

博客园 - Prolove

android 开源框架推荐 手机游戏玩家来源渠道统计方法 Centos+Nginx+PHP+Mysql 如何调整不良的 IT 管理习惯 Mysql 数据库优化的几个办法 URL 重写 mysql 忘记 root 密码 DedeCms 生成性能终极优化策略 linux 架设 subversion(svn) 版本控制[转载] js firefox3 下 fckeditor 插入超链接失效解决办法 Zend Studio 5.0 5.1 5.5 系列号 注册码 SN 不指定 google 病毒警告提示网站有病毒木马的解除方法 js 判断浏览器类型 iexplore.exe 应用程序错误 该内存不能为"read" 点击 input 框,框内提示消失效果 php 求某时间段的时间戳开始和结尾 通过SSH 解压缩 .tar.gz .gz .zip 文件的方法 PHP: Allowed memory size of 的解决
Red Hat Enterprise Linux AS release 4 下安装 gcc (转帖)
Prolove · 2010-01-26 · via 博客园 - Prolove

安装 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

rpm -ivh glibc-2.3.4-2.39.i386.rpm

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)