[CentOS] yum install libstdc++-devel

Fri Aug 10 21:19:41 UTC 2007
Tony Schreiner <schreian at bc.edu>

Johnny Hughes wrote:
> 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


Thanks Johnny,

My point was mainly that it seems inconsistent that I could install both 
of them if neither one is present, but cannot install the other one if 
one is present.

This appears to be different than on Fedora 7 anyway.

I'm not that sure that I need the i386 version on these machines, I 
thought I did for the occasional -m32 compilation.

Tony Schreiner
Biology Department
Boston College