我遇到了在我的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
我无法弄清楚conflict
的含义,并且在google之后我什么也没找到。
请帮帮我。提前谢谢。
答案 0 :(得分:0)
尝试
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-*
应该解决你的问题。