yum安装gcc错误

发布于 2024-10-19 05:22:53 字数 2822 浏览 1 评论 0原文

# yum install gcc
Loaded plugins: rhnplugin, security
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.1.2-50.el5 set to be updated
--> Processing Dependency: cpp = 4.1.2-50.el5 for package: gcc
--> Processing Dependency: libgomp >= 4.1.2-50.el5 for package: gcc
--> Processing Dependency: libgcc >= 4.1.2-50.el5 for package: gcc
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Running transaction check
---> Package cpp.x86_64 0:4.1.2-50.el5 set to be updated
---> Package glibc-devel.x86_64 0:2.5-58 set to be updated
--> Processing Dependency: glibc-headers = 2.5-58 for package: glibc-devel
--> Processing Dependency: glibc = 2.5-58 for package: glibc-devel
--> Processing Dependency: glibc-headers for package: glibc-devel
---> Package libgcc.i386 0:4.1.2-50.el5 set to be updated
---> Package libgcc.x86_64 0:4.1.2-50.el5 set to be updated
---> Package libgomp.x86_64 0:4.4.4-13.el5 set to be updated
--> Running transaction check
--> Processing Dependency: glibc = 2.5-49.el5_5.7 for package: nscd
---> Package glibc.i686 0:2.5-58 set to be updated
--> Processing Dependency: glibc-common = 2.5-58 for package: glibc
---> Package glibc.x86_64 0:2.5-58 set to be updated
---> Package glibc-headers.x86_64 0:2.5-58 set to be updated
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Running transaction check
---> Package glibc-common.x86_64 0:2.5-58 set to be updated
---> Package glibc-headers.x86_64 0:2.5-58 set to be updated
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Processing Dependency: kernel-headers for package: glibc-headers
---> Package nscd.x86_64 0:2.5-58 set to be updated
--> Finished Dependency Resolution
glibc-headers-2.5-58.x86_64 from rhel-x86_64-server-5 has depsolving problems
  --> Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-58.x86_64 (rhel-x86_64-server-5)
glibc-headers-2.5-58.x86_64 from rhel-x86_64-server-5 has depsolving problems
  --> Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-58.x86_64 (rhel-x86_64-server-5)
Error: Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-58.x86_64 (rhel-x86_64-server-5)
Error: Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-58.x86_64 (rhel-x86_64-server-5)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
# yum install gcc
Loaded plugins: rhnplugin, security
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.1.2-50.el5 set to be updated
--> Processing Dependency: cpp = 4.1.2-50.el5 for package: gcc
--> Processing Dependency: libgomp >= 4.1.2-50.el5 for package: gcc
--> Processing Dependency: libgcc >= 4.1.2-50.el5 for package: gcc
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Running transaction check
---> Package cpp.x86_64 0:4.1.2-50.el5 set to be updated
---> Package glibc-devel.x86_64 0:2.5-58 set to be updated
--> Processing Dependency: glibc-headers = 2.5-58 for package: glibc-devel
--> Processing Dependency: glibc = 2.5-58 for package: glibc-devel
--> Processing Dependency: glibc-headers for package: glibc-devel
---> Package libgcc.i386 0:4.1.2-50.el5 set to be updated
---> Package libgcc.x86_64 0:4.1.2-50.el5 set to be updated
---> Package libgomp.x86_64 0:4.4.4-13.el5 set to be updated
--> Running transaction check
--> Processing Dependency: glibc = 2.5-49.el5_5.7 for package: nscd
---> Package glibc.i686 0:2.5-58 set to be updated
--> Processing Dependency: glibc-common = 2.5-58 for package: glibc
---> Package glibc.x86_64 0:2.5-58 set to be updated
---> Package glibc-headers.x86_64 0:2.5-58 set to be updated
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Running transaction check
---> Package glibc-common.x86_64 0:2.5-58 set to be updated
---> Package glibc-headers.x86_64 0:2.5-58 set to be updated
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Processing Dependency: kernel-headers for package: glibc-headers
---> Package nscd.x86_64 0:2.5-58 set to be updated
--> Finished Dependency Resolution
glibc-headers-2.5-58.x86_64 from rhel-x86_64-server-5 has depsolving problems
  --> Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-58.x86_64 (rhel-x86_64-server-5)
glibc-headers-2.5-58.x86_64 from rhel-x86_64-server-5 has depsolving problems
  --> Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-58.x86_64 (rhel-x86_64-server-5)
Error: Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-58.x86_64 (rhel-x86_64-server-5)
Error: Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-58.x86_64 (rhel-x86_64-server-5)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

揪着可爱 2024-10-26 05:22:53

看起来你只需要:

yum install kernel-headers

Looks like you just need to:

yum install kernel-headers
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文