[SOLVED] gcc install from CentOS dvd

Issues related to software problems.
Post Reply
charliemops
Posts: 16
Joined: 2014/01/31 09:47:44

[SOLVED] gcc install from CentOS dvd

Post by charliemops » 2014/10/17 08:50:20

Hi,

due to problems with yum (see unresolved post viewtopic.php?f=20&t=48780) I'm triyng to install gcc from CentOS dvd but I have depsolving problems:

Code: Select all

$ sudo yum --disablerepo=\* --enablerepo=c5-media install gcc
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.i386 0:4.1.2-48.el5 set to be updated
--> Processing Dependency: libgomp >= 4.1.2-48.el5 for package: gcc
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Running transaction check
---> Package glibc-devel.i386 0:2.5-49 set to be updated
--> Processing Dependency: glibc = 2.5-49 for package: glibc-devel
--> Processing Dependency: glibc-headers = 2.5-49 for package: glibc-devel
--> Processing Dependency: glibc-headers for package: glibc-devel
---> Package libgomp.i386 0:4.4.0-6.el5 set to be updated
--> Running transaction check
---> Package glibc-devel.i386 0:2.5-49 set to be updated
--> Processing Dependency: glibc = 2.5-49 for package: glibc-devel
---> Package glibc-headers.i386 0:2.5-49 set to be updated
--> Processing Dependency: glibc = 2.5-49 for package: glibc-headers
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Running transaction check
---> Package glibc-devel.i386 0:2.5-49 set to be updated
--> Processing Dependency: glibc = 2.5-49 for package: glibc-devel
---> Package glibc-headers.i386 0:2.5-49 set to be updated
--> Processing Dependency: glibc = 2.5-49 for package: glibc-headers
---> Package kernel-headers.i386 0:2.6.18-194.el5 set to be updated
--> Finished Dependency Resolution
glibc-devel-2.5-49.i386 from c5-media has depsolving problems
  --> Missing Dependency: glibc = 2.5-49 is needed by package glibc-devel-2.5-49.i386 (c5-media)
glibc-headers-2.5-49.i386 from c5-media has depsolving problems
  --> Missing Dependency: glibc = 2.5-49 is needed by package glibc-headers-2.5-49.i386 (c5-media)
Error: Missing Dependency: glibc = 2.5-49 is needed by package glibc-devel-2.5-49.i386 (c5-media)
Error: Missing Dependency: glibc = 2.5-49 is needed by package glibc-headers-2.5-49.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
--skip-broken doesn't work around the problem:

Code: Select all

]$ sudo yum --disablerepo=\* --enablerepo=c5-media install gcc --skip-broken
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.i386 0:4.1.2-48.el5 set to be updated
--> Processing Dependency: libgomp >= 4.1.2-48.el5 for package: gcc
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Running transaction check
---> Package glibc-devel.i386 0:2.5-49 set to be updated
--> Processing Dependency: glibc = 2.5-49 for package: glibc-devel
--> Processing Dependency: glibc-headers = 2.5-49 for package: glibc-devel
--> Processing Dependency: glibc-headers for package: glibc-devel
---> Package libgomp.i386 0:4.4.0-6.el5 set to be updated
--> Running transaction check
---> Package glibc-devel.i386 0:2.5-49 set to be updated
--> Processing Dependency: glibc = 2.5-49 for package: glibc-devel
---> Package glibc-headers.i386 0:2.5-49 set to be updated
--> Processing Dependency: glibc = 2.5-49 for package: glibc-headers
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Running transaction check
---> Package glibc-devel.i386 0:2.5-49 set to be updated
--> Processing Dependency: glibc = 2.5-49 for package: glibc-devel
---> Package glibc-headers.i386 0:2.5-49 set to be updated
--> Processing Dependency: glibc = 2.5-49 for package: glibc-headers
---> Package kernel-headers.i386 0:2.6.18-194.el5 set to be updated
--> Finished Dependency Resolution
glibc-devel-2.5-49.i386 from c5-media has depsolving problems
  --> Missing Dependency: glibc = 2.5-49 is needed by package glibc-devel-2.5-49.i386 (c5-media)
glibc-headers-2.5-49.i386 from c5-media has depsolving problems
  --> Missing Dependency: glibc = 2.5-49 is needed by package glibc-headers-2.5-49.i386 (c5-media)
--> Running transaction check
---> Package gcc.i386 0:4.1.2-48.el5 set to be updated
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
---> Package libgomp.i386 0:4.4.0-6.el5 set to be updated
--> Finished Dependency Resolution
gcc-4.1.2-48.el5.i386 from c5-media has depsolving problems
  --> Missing Dependency: glibc-devel >= 2.2.90-12 is needed by package gcc-4.1.2-48.el5.i386 (c5-media)

Packages skipped because of dependency problems:
    gcc-4.1.2-48.el5.i386 from c5-media
    glibc-devel-2.5-49.i386 from c5-media
    glibc-headers-2.5-49.i386 from c5-media
    kernel-headers-2.6.18-194.el5.i386 from c5-media
    libgomp-4.4.0-6.el5.i386 from c5-media
package-cleanup -- problems returns no problems:

Code: Select all

]$ package-cleanup --problems
Setting up yum
Reading local RPM database
Processing all local requires
No problems found
--dupes find no duplicates and rmp does nothing

Trying to install glibc returns:

Code: Select all

$ sudo yum --disablerepo=\* --enablerepo=c5-media install glibc
Setting up Install Process
Package matching glibc-2.5-49.i686 already installed. Checking for update.
Nothing to do
So I have glibc-2.5-49.i686 installed put he has problems with glibc-*-2.5-49.i386 rpms?

How can I solve this?
Thank you
Last edited by charliemops on 2014/10/21 09:30:27, edited 1 time in total.

User avatar
TrevorH
Forum Moderator
Posts: 26970
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: gcc install from CentOS dvd

Post by TrevorH » 2014/10/17 09:02:08

What is the output from rpm -qa --qf '%{name}-%{version}.%{release}.%{arch}\n' glibc\*
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

charliemops
Posts: 16
Joined: 2014/01/31 09:47:44

Re: gcc install from CentOS dvd

Post by charliemops » 2014/10/17 09:08:54

Hi Trevor, thank you,
here you are:

Code: Select all

$ rpm -qa --qf '%{name}-%{version}.%{release}.%{arch}\n' glibc\*
glibc-common-2.5.107.el5_9.1.x86_64
glibc-2.5.107.el5_9.1.i686
glibc-2.5.107.el5_9.1.x86_64

User avatar
TrevorH
Forum Moderator
Posts: 26970
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: gcc install from CentOS dvd

Post by TrevorH » 2014/10/17 09:32:31

The problem is that your installed glibc packages are newer than the ones on the DVD you have mounted. 2.5.107 is from 5.9 so you will need the 5.9 DVD to match.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

charliemops
Posts: 16
Joined: 2014/01/31 09:47:44

Re: gcc install from CentOS dvd

Post by charliemops » 2014/10/17 09:42:56

Ok, so once mounted the CentOS-5.9-x86_64.iso I will be able to install the right version of gcc.
I'll let you know if it worked.
Thank you very much.

charliemops
Posts: 16
Joined: 2014/01/31 09:47:44

Re: gcc install from CentOS dvd

Post by charliemops » 2014/10/20 08:09:42

Hi,
I've mounted the CentOS-5.9-x86_64 DVD and I've listed the gcc version in it:

Code: Select all

$ sudo yum --disablerepo=\* --enablerepo=c5-media list | grep gcc
libgcc.i386                                4.1.2-48.el5                installed
libgcc.x86_64                              4.1.2-48.el5                installed
compat-gcc-34.x86_64                       3.4.6-4.1                   c5-media
compat-gcc-34-c++.x86_64                   3.4.6-4.1                   c5-media
compat-gcc-34-g77.x86_64                   3.4.6-4.1                   c5-media
compat-libgcc-296.i386                     2.96-138                    c5-media
gcc.x86_64                                 4.1.2-54.el5                c5-media
gcc-c++.x86_64                             4.1.2-54.el5                c5-media
gcc-gfortran.x86_64                        4.1.2-54.el5                c5-media
gcc-gnat.x86_64                            4.1.2-54.el5                c5-media
gcc-java.x86_64                            4.1.2-54.el5                c5-media
gcc-objc.x86_64                            4.1.2-54.el5                c5-media
gcc-objc++.x86_64                          4.1.2-54.el5                c5-media
gcc44.x86_64                               4.4.7-1.el5                 c5-media
gcc44-c++.x86_64                           4.4.7-1.el5                 c5-media
gcc44-gfortran.x86_64                      4.4.7-1.el5                 c5-media
libgcc.i386                                4.1.2-54.el5                c5-media
libgcc.x86_64                              4.1.2-54.el5                c5-media
I've launched the gcc install but there are still depsolving issues:

Code: Select all

$ sudo yum --disablerepo=\* --enablerepo=c5-media install gcc
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-107 set to be updated
--> Processing Dependency: glibc-headers = 2.5-107 for package: glibc-devel
--> Processing Dependency: glibc = 2.5-107 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
---> Package glibc-devel.x86_64 0:2.5-107 set to be updated
--> Processing Dependency: glibc = 2.5-107 for package: glibc-devel
---> Package glibc-headers.x86_64 0:2.5-107 set to be updated
--> Processing Dependency: glibc = 2.5-107 for package: glibc-headers
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Running transaction check
---> Package glibc-devel.x86_64 0:2.5-107 set to be updated
--> Processing Dependency: glibc = 2.5-107 for package: glibc-devel
---> Package glibc-headers.x86_64 0:2.5-107 set to be updated
--> Processing Dependency: glibc = 2.5-107 for package: glibc-headers
---> Package kernel-headers.x86_64 0:2.6.18-348.el5 set to be updated
--> Finished Dependency Resolution
glibc-headers-2.5-107.x86_64 from c5-media has depsolving problems
  --> Missing Dependency: glibc = 2.5-107 is needed by package glibc-headers-2.5-107.x86_64 (c5-media)
glibc-devel-2.5-107.x86_64 from c5-media has depsolving problems
  --> Missing Dependency: glibc = 2.5-107 is needed by package glibc-devel-2.5-107.x86_64 (c5-media)
Error: Missing Dependency: glibc = 2.5-107 is needed by package glibc-devel-2.5-107.x86_64 (c5-media)
Error: Missing Dependency: glibc = 2.5-107 is needed by package glibc-headers-2.5-107.x86_64 (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
It requires glibc 2.5-107 but it seems it is already installed:

Code: Select all

$ sudo yum --disablerepo=\* --enablerepo=c5-media list | grep glibc
glibc.i686                                 2.5-107.el5_9.1             installed
glibc.x86_64                               2.5-107.el5_9.1             installed
glibc-common.x86_64                        2.5-107.el5_9.1             installed
compat-glibc.i386                          1:2.3.4-2.26                c5-media
compat-glibc.x86_64                        1:2.3.4-2.26                c5-media
compat-glibc-headers.x86_64                1:2.3.4-2.26                c5-media
glibc-devel.i386                           2.5-107                     c5-media
glibc-devel.x86_64                         2.5-107                     c5-media
glibc-headers.x86_64                       2.5-107                     c5-media
glibc-utils.x86_64                         2.5-107                     c5-media
Thank you for your help.

User avatar
TrevorH
Forum Moderator
Posts: 26970
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: gcc install from CentOS dvd

Post by TrevorH » 2014/10/20 11:08:01

You can't use the media since you have updates applied to the system post-install. You'll need to download the 2.5-107.el5_9.1 versions of the required packages and make them available (or just install them) separately.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

charliemops
Posts: 16
Joined: 2014/01/31 09:47:44

Re: gcc install from CentOS dvd

Post by charliemops » 2014/10/20 11:26:42

Ok, can you be a little more specific about how make them available (or just install them) separately?
i.e. where do I have to put the files, which command I have to use to install them separately....

Thank you for you help (and patience)

User avatar
TrevorH
Forum Moderator
Posts: 26970
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: gcc install from CentOS dvd

Post by TrevorH » 2014/10/20 12:01:20

You'll have to download the 2.5-107.el5_9.1 packages from vault.centos.org in the 5.9 updates directory, transfer them to the machine in question and use yum localinstall to install them. The other packages you are trying to install may also require packages from the updates directory but you'll only find that out by repeating the download/install cycle.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

charliemops
Posts: 16
Joined: 2014/01/31 09:47:44

Re: [SOLVED] gcc install from CentOS dvd

Post by charliemops » 2014/10/21 09:34:21

I managed to follow the dependencies 'til the end and I've been able to install gcc and all the needed packages.

Once again: thank you Trevor for your support!

Post Reply

Return to “CentOS 5 - Software Support”