Re: [CentOS] cannot install glibc.i686 on x86_64

2012-11-29 Thread Robert Heller
At Fri, 23 Nov 2012 02:05:47 +0100 CentOS mailing list  
wrote:

> 
> I cannot install glibc.i686 on a x86_64 system because I get 
> 
> Error: Missing Dependency: glibc-common = 2.5-81 is needed by package 
> glibc-2.5-81.i686 (base)
> 
> glibc-common.x86_64 is installed, but it's apparently looking for i686.
> There's indeed no glibc-common for i686.
> There's also glibc.i386 and glibc-common.i386 available, but I think I 
> don't need them.

No, this is what you need to run 32-bit apps (on an up-to-date 64-bit
CentOS 5 system) [note: the -devel rpms are optional]:

sauron.deepsoft.com% rpm -qa --queryformat 
"%{name}-%{version}-%{release}.%{arch}\n" glibc\*
glibc-devel-2.5-81.el5_8.7.x86_64
glibc-common-2.5-81.el5_8.7.x86_64
glibc-devel-2.5-81.el5_8.7.i386
glibc-headers-2.5-81.el5_8.7.x86_64
glibc-2.5-81.el5_8.7.i686
glibc-2.5-81.el5_8.7.x86_64

The %{release}s need to match!


> 
> I have other x86_64 systems that have an installed glibc.i686 and no 
> glibc.i386 and glibc-common.i386. I don't remember how I did that, 
> probably on first install.
> 
> How do I get glibc.i686 with yum on the system?

Make sure you are installing the proper version and have the base AND
updates repos enabled.

> 
> 
> Kai
> 
> 
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 
>   

-- 
Robert Heller -- 978-544-6933 / hel...@deepsoft.com
Deepwoods Software-- http://www.deepsoft.com/
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments


 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] cannot install glibc.i686 on x86_64

2012-11-23 Thread Kai Schaetzl
Johnny Hughes wrote on Fri, 23 Nov 2012 09:16:41 -0600:

> multilib_policy=best

Perfect, thanks!
I've never heard of this option before. I've been actively following the 
list during the first major CentOS 5 releases and I should have noticed it 
:-)
I added it immediately to some systems now.

I didn't know the problem exists only because of anaconda greediness on 
first package options installation. In that case I may not have needed to 
exclude at all since I do the initial install with custom kickstart files 
that install only core plus the packages I want. Good to know.

Again, thanks!

Kai


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] cannot install glibc.i686 on x86_64

2012-11-23 Thread Johnny Hughes
On 11/23/2012 06:46 AM, Kai Schaetzl wrote:
> Johnny Hughes wrote on Thu, 22 Nov 2012 20:11:17 -0600:
>
> Thank you both for the replies.
> This was my own mistake combined with some depsolving weirdness of yum.
>
> I have 386 and 686 excluded from the repo's because of the greediness to 
> install all versions of a package. At least in earlier versions of the 5.x 
> series.
>
> When I first hit the error I checked and commented out the line. But there 
> was no change with the error. I looked on mirror.centos.org and there was 
> no glibc-common.i686. (Didn't look in updates then, but did now, there's 
> really none.)
>
> My mistake was that I commented out the exclude for the base repo, but not 
> for updates. After commenting out for updates there is no problem to get 
> glibc.i686. And it doesn't ask for glibc-common.
>
> Seems there is a dependency in the i686 package that is resolved by the 
> x86_64 package of glibc-common, but as I was accidentally trying to 
> install an older version of glibc.i686 the installed newer version didn't 

There is a better way to only get the i[3,6]86 packages you want and not
get the rest.

Use this option in yum.conf INSTEAD of excluding i386/i686 packages:

multilib_policy=best

Here is some info on this option:

http://docs.fedoraproject.org/en-US/Fedora/14/html/Software_Management_Guide/ch04s07.html

The only problem is that for CentOS-5.x anaconda initially installs with
the equivalent setting of "all" ... so what I do on new installs is a
minimal install, remove i[3,6]86 rpms, add "multilib_policy=best" to
/etc/yum.conf, then configure the server the way I want.

You can add specific i[3,6]86 packages and they will continue to get
updates, etc ... BUT, only x86_64 will be used when installing new
packages unless you specifically also install i[3,6]86

This is the default for CentOS-6, except anaconda actually installs this
way too, so you don't need to remove i[3,6]86 packages.




signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] cannot install glibc.i686 on x86_64

2012-11-23 Thread Kai Schaetzl
Johnny Hughes wrote on Thu, 22 Nov 2012 20:11:17 -0600:

Thank you both for the replies.
This was my own mistake combined with some depsolving weirdness of yum.

I have 386 and 686 excluded from the repo's because of the greediness to 
install all versions of a package. At least in earlier versions of the 5.x 
series.

When I first hit the error I checked and commented out the line. But there 
was no change with the error. I looked on mirror.centos.org and there was 
no glibc-common.i686. (Didn't look in updates then, but did now, there's 
really none.)

My mistake was that I commented out the exclude for the base repo, but not 
for updates. After commenting out for updates there is no problem to get 
glibc.i686. And it doesn't ask for glibc-common.

Seems there is a dependency in the i686 package that is resolved by the 
x86_64 package of glibc-common, but as I was accidentally trying to 
install an older version of glibc.i686 the installed newer version didn't 
match.



Kai


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] cannot install glibc.i686 on x86_64

2012-11-22 Thread Johnny Hughes
On 11/22/2012 07:05 PM, Kai Schaetzl wrote:
> I cannot install glibc.i686 on a x86_64 system because I get 
>
> Error: Missing Dependency: glibc-common = 2.5-81 is needed by package 
> glibc-2.5-81.i686 (base)
>
> glibc-common.x86_64 is installed, but it's apparently looking for i686.
> There's indeed no glibc-common for i686.
> There's also glibc.i386 and glibc-common.i386 available, but I think I 
> don't need them.
>
> I have other x86_64 systems that have an installed glibc.i686 and no 
> glibc.i386 and glibc-common.i386. I don't remember how I did that, 
> probably on first install.
>
> How do I get glibc.i686 with yum on the system?

That is NOT the latest version of glibc.i686 .. it is the version that
is in CentOS 5.8, but have been 4 updates to the CentOS-5.8 glibc since
then.

The one thing you are going to need to do is to have the same version of
glibc.i686 that you have for glibc.x86_64.

If you really do have 2.5-81 and not glibc-2.5-81.el5_8.1 (or .2, .4, or
.7) then it should install just fine.  I would bet you have a different
version of glibc.x86_64 ... what does this tell you:

rpm -qa | grep glibc | sort

(pay particular attention to see if there is a number after "-81")

And this is a requirement for any multi-lib package, not just glibc ...
one should use the same i[3,6]86 package version as the installed x86_64
version to get the install to work correctly.



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] cannot install glibc.i686 on x86_64

2012-11-22 Thread Marcin Lage
I'm not sure,
glibc-common*.i686 is on the [updates] section of the
/etc/yum.repos.d/CentOS-Base.repo.
Maybe priorities between the repos [base] and updates or [updates]
"ENABLED=0"

Take a look in - mirror.centos.org/centos/5/updates/x86_64/RPMS/

Your system version is CentOS 5 ?

I'm sorry, my english is bad - rsrs"

2012/11/22 Kai Schaetzl 

> I cannot install glibc.i686 on a x86_64 system because I get
>
> Error: Missing Dependency: glibc-common = 2.5-81 is needed by package
> glibc-2.5-81.i686 (base)
>
> glibc-common.x86_64 is installed, but it's apparently looking for i686.
> There's indeed no glibc-common for i686.
> There's also glibc.i386 and glibc-common.i386 available, but I think I
> don't need them.
>
> I have other x86_64 systems that have an installed glibc.i686 and no
> glibc.i386 and glibc-common.i386. I don't remember how I did that,
> probably on first install.
>
> How do I get glibc.i686 with yum on the system?
>
>
> Kai
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] cannot install glibc.i686 on x86_64

2012-11-22 Thread Kai Schaetzl
I cannot install glibc.i686 on a x86_64 system because I get 

Error: Missing Dependency: glibc-common = 2.5-81 is needed by package 
glibc-2.5-81.i686 (base)

glibc-common.x86_64 is installed, but it's apparently looking for i686.
There's indeed no glibc-common for i686.
There's also glibc.i386 and glibc-common.i386 available, but I think I 
don't need them.

I have other x86_64 systems that have an installed glibc.i686 and no 
glibc.i386 and glibc-common.i386. I don't remember how I did that, 
probably on first install.

How do I get glibc.i686 with yum on the system?


Kai


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos