Can't install x86_64 packages (e.g. glibc-devel.x86_64)

Support for the other architectures (X86_64, IA-64, and PowerPC)

Can't install x86_64 packages (e.g. glibc-devel.x86_64)

Postby patrickdpinguin » 2010/03/03 09:02:03

Hi,

I have upgraded an existing x86 CentOS installation to the latest CentOS version in x86_64. The upgrade went fine.

However, I need to install glibc-devel.x86_64 to properly be able to compile programs. Currently, only glibc-devel.i386 is installed.

Yum seems unable to find this package, even though I have seen it in online repositories.
I tried setting exactarch in yum.conf to 0.
I tried 'yum clean all'.
I tried manually setting the repository to a x86_64 one in /etc/yum.repos.d.

Below is some more information.
What am I doing wrong?

Code: Select all
# grep glibc installed-packages
glibc.i686                               2.5-42                        installed
glibc.x86_64                             2.5-42                        installed
glibc-common.i386                        2.5-12                        installed
glibc-common.x86_64                      2.5-42                        installed
glibc-devel.i386                         2.5-42                        installed
glibc-headers.x86_64                     2.5-42                        installed


Code: Select all
# yum -v install glibc-devel.x86_64
Loading "fastestmirror" plugin
Config time: 0.090
Yum Version: 3.2.22
Setting up Package Sacks
Loading mirror speeds from cached hostfile
 * addons: ftp.free.fr
 * base: ftp.free.fr
 * extras: centos.crazyfrogs.org
 * updates: ftp.free.fr
pkgsack time: 0.050
rpmdb time: 0.000
Setting up Install Process
Checking for virtual provide or file-provide for glibc-devel.x86_64
Searching pkgSack for dep: glibc-devel.x86_64
No package glibc-devel.x86_64 available.
Nothing to do


Code: Select all
# uname -rmi
2.6.18-164.el5 x86_64 x86_64
patrickdpinguin
 
Posts: 2
Joined: 2010/03/03 08:53:50

Can't install x86_64 packages (e.g. glibc-devel.x86_64)

Postby pschaff » 2010/03/03 22:59:15

That's odd
Code: Select all
# rpm -qa glibc\*
glibc-headers-2.5-42.el5_4.3.x86_64
glibc-2.5-42.el5_4.3.x86_64
glibc-common-2.5-42.el5_4.3.x86_64
glibc-devel-2.5-42.el5_4.3.x86_64
glibc-devel-2.5-42.el5_4.3.i386
glibc-2.5-42.el5_4.3.i686


It should not be necessary ro change the repo configuration.

Try
Code: Select all
yum install glibc-devel-2.5-42.el5_4.3.x86_64
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Can't install x86_64 packages (e.g. glibc-devel.x86_64)

Postby patrickdpinguin » 2010/03/04 07:48:40

This doesn't seem to work either...

Code: Select all
yum install -v glibc-devel-2.5-42.el5_4.3.x86_64
Loading "fastestmirror" plugin
Config time: 0.089
Yum Version: 3.2.22
Setting up Package Sacks
Loading mirror speeds from cached hostfile
 * addons: ftp.free.fr
 * base: ftp.free.fr
 * extras: ftp.free.fr
 * updates: ftp.free.fr
pkgsack time: 0.056
rpmdb time: 0.000
Setting up Install Process
Checking for virtual provide or file-provide for glibc-devel-2.5-42.el5_4.3.x86_64
Searching pkgSack for dep: glibc-devel-2.5-42.el5_4.3.x86_64
No package glibc-devel-2.5-42.el5_4.3.x86_64 available.
Nothing to do



Here is some additional info:
Code: Select all
==================== BEGIN rpm -q centos-release ====================
centos-release-5-4.el5.centos.1.x86_64
==================== END   rpm -q centos-release ====================

==================== BEGIN rpm -q yum rpm python ====================
yum-3.2.22-20.el5.centos.noarch
rpm-4.4.2-37.el5.i386
rpm-4.4.2.3-18.el5.x86_64
python-2.4.3-19.el5.i386
python-2.4.3-27.el5.x86_64
==================== END   rpm -q yum rpm python ====================

==================== BEGIN ls /etc/yum.repos.d ====================
CentOS-Base.x86_64.repo
CentOS-Media.repo
==================== END   ls /etc/yum.repos.d ====================

==================== BEGIN cat /etc/yum.conf ====================
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

installonly_limit = 5

proxy=*******

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
==================== END   cat /etc/yum.conf ====================

==================== BEGIN rpm -qa kernel\* | sort ====================
kernel-2.6.18-164.el5.x86_64
kernel-devel-2.6.18-8.el5.i686
kernel-headers-2.6.18-164.el5.x86_64
==================== END   rpm -qa kernel\* | sort ====================


Is there something wrong in yum.conf? Is it a problem that both a i386 and x86_64 rpm package is installed?
patrickdpinguin
 
Posts: 2
Joined: 2010/03/03 08:53:50

Re: Can't install x86_64 packages (e.g. glibc-devel.x86_64)

Postby pschaff » 2010/03/04 14:42:44

patrickdpinguin wrote:
This doesn't seem to work either...
...
Here is some additional info:
Code: Select all
==================== BEGIN rpm -q centos-release ====================
centos-release-5-4.el5.centos.1.x86_64
==================== END   rpm -q centos-release ====================

==================== BEGIN rpm -q yum rpm python ====================
yum-3.2.22-20.el5.centos.noarch
rpm-4.4.2-37.el5.i386
rpm-4.4.2.3-18.el5.x86_64
python-2.4.3-19.el5.i386
python-2.4.3-27.el5.x86_64
==================== END   rpm -q yum rpm python ====================

The i386 versions do not match the x86_64 versions. This is not a new or unique problem, apparently a symptom of an older problem.

Code: Select all
==================== BEGIN ls /etc/yum.repos.d ====================
CentOS-Base.x86_64.repo
CentOS-Media.repo
==================== END   ls /etc/yum.repos.d ====================

You probably need the original CentOS-Base.repo - not sure what you have done to that CentOS-Base.x86_64.repo version.

Code: Select all
==================== BEGIN cat /etc/yum.conf ====================
[main]
...
proxy=*******
...
==================== END   cat /etc/yum.conf ====================

The proxy may well be the source of the problem, possibly exacerbated by changes to repo configs.

Using protectbase and fastestmirror yum plugins
"If you are using the default CentOS configuration, and if you are not behind a proxy server, fastestmirror is highly recommended."

Tips and Tricks / Yum and RPM / 11. Using yum with a proxy server

Code: Select all
==================== BEGIN rpm -qa kernel\* | sort ====================
kernel-2.6.18-164.el5.x86_64
kernel-devel-2.6.18-8.el5.i686
kernel-headers-2.6.18-164.el5.x86_64
==================== END   rpm -qa kernel\* | sort ====================

More multi-arch issues - an x86_64 kernel and i686 kernel-devel way out of date with respect to the kernel version, which is original CentOS 5.4 and now way behind the times. I have
Code: Select all
# rpm -qa kernel\* | sort
kernel-2.6.18-164.10.1.el5.x86_64
kernel-2.6.18-164.11.1.el5.x86_64
kernel-2.6.18-164.2.1.el5.x86_64
kernel-2.6.18-164.6.1.el5.x86_64
kernel-2.6.18-164.9.1.el5.x86_64
kernel-devel-2.6.18-164.10.1.el5.x86_64
kernel-devel-2.6.18-164.11.1.el5.x86_64
kernel-devel-2.6.18-164.2.1.el5.x86_64
kernel-devel-2.6.18-164.6.1.el5.x86_64
kernel-devel-2.6.18-164.9.1.el5.x86_64
kernel-headers-2.6.18-164.11.1.el5.x86_64


Is there something wrong in yum.conf? Is it a problem that both a i386 and x86_64 rpm package is installed?[/quote]

Something with the proxy, in combination with playing games with the standard repo configs, is my guess. Perhaps someone more familiar with proxy issues than I am can comment on that part of it, but you need to restore the standard repo configuration. It is normal to have both x86_64 and iX86 packages on a 64-bit system, but you have a mess of mixed and missing versions.

FAQ #22: I installed the x86_64 version, so why do I have i386 packages, and can I get rid of them?
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Can't install x86_64 packages (e.g. glibc-devel.x86_64)

Postby AlanBartlett » 2010/03/04 19:10:18

Critically re-reading the OP's first sentence --

I have upgraded an existing x86 CentOS installation to the latest CentOS version in x86_64.

-- may give a clue. I read it as an attempt to update a 32-bit system to 64-bit. I hope I'm wrong . . . otherwise a fresh install may be the only solution.

The upgrade went fine.

Are you sure? :-o
User avatar
AlanBartlett
Forum Moderator
 
Posts: 9118
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk


Return to CentOS 5 - X86_64,s390(x) and PowerPC Support

Who is online

Users browsing this forum: No registered users and 0 guests