[CentOS] yum install libstdc++-devel

Johnny Hughes johnny at centos.org
Fri Aug 10 20:02:08 UTC 2007


Tony Schreiner wrote:
> On CentOS 4.5 (x86_64); happening on several different machines
> 
> 
> with libstdc++ and libstdc++-devel  v. 3.4.6-8
> 
> only one of the i386 or x86_64 versions of libstc++-devel is installed
> 
> if I
> yum install libstdc++-devel
> 
> it will install the x86_64 version and remove the i386 version, but not
> warn me. Similarly if the i386 version is installed it will install the
> x86_64 and remove the i386, without warning.
> 
> But if i remove libstc++-devel (and necessarily gcc-c++), then reinstall
> with
> 
> yum install gcc-g++  libstdc++-devel
> 
> both versions of libstdc++-devel will be installed.

There is really no easy answer to this question, except that you need to
specify .i386 and .x86_64 in your yum commands.

I almost always do not use any i386 packages on any x86_64 machines
because of this.  I always either put this in yum.conf:

exclude=*.i386

or this (on machines I build with):

exclude=exclude=[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz]*.i?86
g[abcdefghijkmnopqrstuvwxyz]*.i?86 glib2*.i?86 glib-*.i?86 glib.i?86

(That allows glibc and glibc-devel)

If you want to use all the i386 programs available in the x86_64 tree,
it is going to require special actions to administer ... and it is not
easy (IMHO).  I wish it were easier ... but I am afraid it is not.

Thanks,
Johnny Hughes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20070810/8f196058/attachment.sig>


More information about the CentOS mailing list