Problems with gcc

Hello
I'm not able to install gcc.
My platform is

[root@localhost ~]# uname -a
Linux localhost 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
#yum install gcc
I got the following error
---> Package libgfortran44.x86_64 0:4.4.4-13.el5 set to be updated
---> Package libgnat.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
---> Package libobjc.x86_64 0:4.1.2-50.el5 set to be updated
---> Package libstdc++.x86_64 0:4.1.2-50.el5 set to be updated
---> Package libstdc++-devel.x86_64 0:4.1.2-50.el5 set to be updated
---> Package libstdc++44-devel.x86_64 0:4.4.4-13.el5 set to be updated
--> Running transaction check
---> Package glibc.x86_64 0:2.5-58.el5_6.3 set to be updated
--> Processing Dependency: glibc-common = 2.5-58.el5_6.3 for package: glibc
---> Package glibc-headers.x86_64 0:2.5-58.el5_6.3 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
--> Processing Dependency: glibc-common = 2.5-49 for package: glibc
---> Package glibc-common.x86_64 0:2.5-58.el5_6.3 set to be updated
---> Package kernel-headers.x86_64 0:2.6.18-238.9.1.el5 set to be updated
--> Finished Dependency Resolution
glibc-2.5-49.i686 from installed has depsolving problems
  --> Missing Dependency: glibc-common = 2.5-49 is needed by package glibc-2.5-49.i686 (installed)
Error: Missing Dependency: glibc-common = 2.5-49 is needed by package glibc-2.5-49.i686 (installed)
 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

Please provide some help. . .:confused:

I don't know when version 2.5-49 of glibc-common was compiled, but I see the earliest version of version 2.6 is dated 17-May-2007 (at ftp.gnu.org). The current version is 2.13.

The problem with not keeping your system up-to-date is that at some point, your repository maintainers will assume nobody wants old versions any more and will delete them to free up disk space for new versions.

You may be able to get away with just yum update. If that doesn't work you should upgrade your whole system.

Linux keeps getting better. :slight_smile: Upgrading is advantageous.

What distro do you use ?
'Cause from terminal out put it seems like it is a bit out of date