gpt4 book ai didi

linux - CentOS yum安装gcc错误: glibc-common conflicts with glibc

转载 作者:太空宇宙 更新时间:2023-11-04 04:04:44 52 4
gpt4 key购买 nike

我在 CentOS 上安装 gcc 时遇到问题。

我的命令的输出sudo yum install gcc:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.ustc.edu.cn
* base: centos.ustc.edu.cn
* extras: mirror.bit.edu.cn
* updates: centos.ustc.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.1.2-54.el5 set to be updated
--> Processing Dependency: cpp = 4.1.2-54.el5 for package: gcc
--> Processing Dependency: libgomp >= 4.1.2-54.el5 for package: gcc
--> Processing Dependency: libgcc >= 4.1.2-54.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-54.el5 set to be updated
---> Package glibc-devel.x86_64 0:2.5-118.el5_10.2 set to be updated
--> Processing Dependency: glibc-headers = 2.5-118.el5_10.2 for package: glibc-devel
--> Processing Dependency: glibc = 2.5-118.el5_10.2 for package: glibc-devel
--> Processing Dependency: glibc-headers for package: glibc-devel
---> Package libgcc.i386 0:4.1.2-54.el5 set to be updated
---> Package libgcc.x86_64 0:4.1.2-54.el5 set to be updated
---> Package libgomp.x86_64 0:4.4.7-1.el5 set to be updated
--> Running transaction check
--> Processing Dependency: glibc = 2.5-49 for package: nscd
---> Package glibc.x86_64 0:2.5-118.el5_10.2 set to be updated
--> Processing Dependency: glibc-common = 2.5-118.el5_10.2 for package: glibc
---> Package glibc-headers.x86_64 0:2.5-118.el5_10.2 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-118.el5_10.2 set to be updated
---> Package kernel-headers.x86_64 0:2.6.18-371.4.1.el5 set to be updated
---> Package nscd.x86_64 0:2.5-118.el5_10.2 set to be updated
--> Processing Conflict: glibc-common conflicts glibc > 2.5
--> Finished Dependency Resolution
glibc-common-2.5-118.el5_10.2.x86_64 from updates has depsolving problems
--> glibc-common conflicts with glibc
Error: glibc-common conflicts with glibc
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

我无法弄清楚冲突是什么意思,谷歌后我什么也没找到。

请帮助我。提前致谢。

最佳答案

尝试

rpm -e glibc-2.5-118.el5_10.2.x86_64 glibc-common-2.5-118.el5_10.2.x86_64

然后...

yum -y upgrade glibc glibc-*

它应该可以解决你的问题。

关于linux - CentOS yum安装gcc错误: glibc-common conflicts with glibc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21694422/

52 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com