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

Support for the other architectures (X86_64, IA-64, and PowerPC)
Post Reply
patrickdpinguin
Posts: 2
Joined: 2010/03/03 08:53:50

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

Post by 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]
# 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]

[code]
# 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]

[code]
# uname -rmi
2.6.18-164.el5 x86_64 x86_64
[/code]

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

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

Post by pschaff » 2010/03/03 22:59:15

That's odd[code]
# 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
[/code]

It should not be necessary ro change the repo configuration.

Try[code]yum install glibc-devel-2.5-42.el5_4.3.x86_64[/code]

patrickdpinguin
Posts: 2
Joined: 2010/03/03 08:53:50

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

Post by patrickdpinguin » 2010/03/04 07:48:40

This doesn't seem to work either...

[code]
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
[/code]


Here is some additional info:
[code]
==================== 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 ====================
[/code]

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

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

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

Post by pschaff » 2010/03/04 14:42:44

[quote]
patrickdpinguin wrote:
This doesn't seem to work either...
...
Here is some additional info:
[code]
==================== 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 ====================
[/code][/quote]
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.

[quote][code]
==================== BEGIN ls /etc/yum.repos.d ====================
CentOS-Base.x86_64.repo
CentOS-Media.repo
==================== END ls /etc/yum.repos.d ====================
[/code][/quote]
You probably need the original CentOS-Base.repo - not sure what you have done to that CentOS-Base.x86_64.repo version.

[quote][code]
==================== BEGIN cat /etc/yum.conf ====================
[main]
...
proxy=*******
...
==================== END cat /etc/yum.conf ====================
[/code][/quote]
The proxy may well be the source of the problem, possibly exacerbated by changes to repo configs.

[url=http://wiki.centos.org/Using_protectbase_and_fastestmirror_yum_plugins]Using protectbase and fastestmirror yum plugins[/url]
"If you are using the default CentOS configuration, and if you are [b]not[/b] behind a proxy server, fastestmirror is highly recommended."

[url=http://wiki.centos.org/TipsAndTricks/YumAndRPM?highlight=(yum)|(proxy)#head-ea1fc5d78f578114f4843e57627ebae9cc4fcb5a]Tips and Tricks / Yum and RPM / 11. Using yum with a proxy server[/url]

[quote][code]
==================== 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 ====================
[/code][/quote]
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]
# 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
[/code]

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.

[url=http://wiki.centos.org/FAQ/General#head-357346ff0bf7c14b0849c3bcce39677aaca528e9]FAQ #22: I installed the x86_64 version, so why do I have i386 packages, and can I get rid of them?[/url]

User avatar
AlanBartlett
Forum Moderator
Posts: 9320
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

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

Post by AlanBartlett » 2010/03/04 19:10:18

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

[quote]
I have upgraded an existing x86 CentOS installation to the latest CentOS version in x86_64.
[/quote]
-- 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.

[quote]
The upgrade went fine.
[/quote]
Are you sure? :-o

Post Reply