Page 1 of 1

[SOLVED] yum install gcc-c++ problem CentOS 5.4 x64

Posted: 2010/04/09 02:23:57
by darrenj888
There is error for install gcc-c++ below.
I try to search gcc-c++ rpm for CentOS, but I can't find it.
Is there any comment for this ?
Thanks!

===========================
yum install gcc-c++
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* addons: mirror01.idc.hinet.net
* base: centos.ustc.edu.cn
* epel: ftp.jaist.ac.jp
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.x86_64 0:4.1.2-46.el5_4.2 set to be updated
--> Processing Dependency: libstdc++ = 4.1.2-46.el5_4.2 for package: gcc-c++
--> Processing Dependency: libstdc++-devel = 4.1.2-46.el5_4.2 for package: gcc-c++
--> Running transaction check
---> Package libstdc++.i386 0:4.1.2-46.el5_4.2 set to be updated
---> Package libstdc++.x86_64 0:4.1.2-46.el5_4.2 set to be updated
---> Package libstdc++-devel.x86_64 0:4.1.2-46.el5_4.2 set to be updated
clusterlabs/filelists | 73 kB 00:00
http://www.clusterlabs.org/rpm/epel-5/repodata/filelists.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/filelists.xml.gz from clusterlabs: [Errno 256] No more mirrors to try.
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.

Re: yum install gcc-c++ problem CentOS 5.4 x64

Posted: 2010/04/09 10:00:42
by chuina
Welcome to the [color=003300]CentOS[/color].

Required readings for all new members are [url=http://www.centos.org/modules/newbb/viewforum.php?forum=47]FAQ & Readme First[/url].
There is a [b]How to Provide Information About Your System[/b] in the above [b]FAQ & Readme First[/b] link. Read the instruction there and provide your yum configurations by running [b]./getinfo.sh package[/b]

[SOLVED] yum install gcc-c++ problem CentOS 5.4 x64

Posted: 2010/04/09 11:34:43
by markkuk
[quote]
darrenj888 wrote:

Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration[/quote]
Check the contents of /etc/yum.repos.d and remove all duplicate repository definitions.

[quote]
darrenj888 wrote:
http://www.clusterlabs.org/rpm/epel-5/repodata/filelists.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/filelists.xml.gz from clusterlabs: [Errno 256] No more mirrors to try.
[/quote]
This error is due to the server, you can either wait and hope that the server gets fixed or change your yum configuration to use a different server.

Re: yum install gcc-c++ problem CentOS 5.4 x64

Posted: 2010/04/19 05:23:56
by darrenj888
Dear ALL,

Thanks a lot for your reply.
The mirror site is working.
The issue is solved. :lol:

Re: [SOLVED] yum install gcc-c++ problem CentOS 5.4 x64

Posted: 2010/04/19 12:30:43
by AlanBartlett
On the OP's behalf, this thread is now marked [SOLVED].