当前位置: 技术问答>linux和unix
关于gcc的安装
来源: 互联网 发布时间:2016-11-30
本文导语: [root@localhost urwid-0.9.9.1]# rpm -qa | grep glibc glibc-common-2.5-58.el5_6.2 glibc-2.5-58.el5_6.2 [root@localhost urwid-0.9.9.1]# yum install gcc Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Setting up Install Process Resolving Depe...
[root@localhost urwid-0.9.9.1]# rpm -qa | grep glibc
glibc-common-2.5-58.el5_6.2
glibc-2.5-58.el5_6.2
[root@localhost urwid-0.9.9.1]# yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.i386 0:4.1.2-50.el5 set to be updated
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Running transaction check
---> Package glibc-devel.i386 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
--> Running transaction check
---> Package glibc-devel.i386 0:2.5-58 set to be updated
--> Processing Dependency: glibc = 2.5-58 for package: glibc-devel
---> Package glibc-headers.i386 0:2.5-58 set to be updated
--> Processing Dependency: glibc = 2.5-58 for package: glibc-headers
--> Finished Dependency Resolution
glibc-devel-2.5-58.i386 from c5-media has depsolving problems
--> Missing Dependency: glibc = 2.5-58 is needed by package glibc-devel-2.5-58.i386 (c5-media)
glibc-headers-2.5-58.i386 from c5-media has depsolving problems
--> Missing Dependency: glibc = 2.5-58 is needed by package glibc-headers-2.5-58.i386 (c5-media)
Error: Missing Dependency: glibc = 2.5-58 is needed by package glibc-devel-2.5-58.i386 (c5-media)
Error: Missing Dependency: glibc = 2.5-58 is needed by package glibc-headers-2.5-58.i386 (c5-media)
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.
明明已经安装了glibc,为什么还告诉我说没装?
就算是没装的话,我用的是本地CentOS源,那也应该可以自己解决依赖啊,怎么要报错呢?
glibc-common-2.5-58.el5_6.2
glibc-2.5-58.el5_6.2
[root@localhost urwid-0.9.9.1]# yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.i386 0:4.1.2-50.el5 set to be updated
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Running transaction check
---> Package glibc-devel.i386 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
--> Running transaction check
---> Package glibc-devel.i386 0:2.5-58 set to be updated
--> Processing Dependency: glibc = 2.5-58 for package: glibc-devel
---> Package glibc-headers.i386 0:2.5-58 set to be updated
--> Processing Dependency: glibc = 2.5-58 for package: glibc-headers
--> Finished Dependency Resolution
glibc-devel-2.5-58.i386 from c5-media has depsolving problems
--> Missing Dependency: glibc = 2.5-58 is needed by package glibc-devel-2.5-58.i386 (c5-media)
glibc-headers-2.5-58.i386 from c5-media has depsolving problems
--> Missing Dependency: glibc = 2.5-58 is needed by package glibc-headers-2.5-58.i386 (c5-media)
Error: Missing Dependency: glibc = 2.5-58 is needed by package glibc-devel-2.5-58.i386 (c5-media)
Error: Missing Dependency: glibc = 2.5-58 is needed by package glibc-headers-2.5-58.i386 (c5-media)
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.
明明已经安装了glibc,为什么还告诉我说没装?
就算是没装的话,我用的是本地CentOS源,那也应该可以自己解决依赖啊,怎么要报错呢?
|
好像不是本地的源吧,好像一般都是联网安装的,没网装不了吧。