I ran into this same issue. I was able to use yum to download the RPM, then force install the rpm.
$ sudo yum install --downloadonly --downloaddir=/var/tmp/ libstdc++.i686
$ sudo rpm -ivh --force --nodeps /var/tmp/libstdc++-<VERSION>.i686.rpm
yum
--downloadonly - only download the package into an RPM
--downloaddir - download an RPM to the specified dir
rpm
--ivh - install/verbose log/print hashes for progress
--force - ignore existing installs, this is what ignores the above error
--nodeps - ignore dependencies
Answer from redfeatherplusplus on Stack ExchangeI ran into this same issue. I was able to use yum to download the RPM, then force install the rpm.
$ sudo yum install --downloadonly --downloaddir=/var/tmp/ libstdc++.i686
$ sudo rpm -ivh --force --nodeps /var/tmp/libstdc++-<VERSION>.i686.rpm
yum
--downloadonly - only download the package into an RPM
--downloaddir - download an RPM to the specified dir
rpm
--ivh - install/verbose log/print hashes for progress
--force - ignore existing installs, this is what ignores the above error
--nodeps - ignore dependencies
It says you i686 package not match with you x86_64 package(must with same version number), update the x86_64 package first, then try again:
yum update -y libstdc++.x86_64
yum install libstdc++.i686
Update for RHEL 7 people:
I needed the same item for el7, which in RHEL world, it means adding the "optional RPMs" to your YUM repolist.
$ yum-config-manager --enable rhel-7-server-optional-rpms
yum should be able to find and install the compat rpm now...
$ yum install compat-libstdc++-33
The RHEL 5 package compat-libstdc++-33 : You can get free packages from "Redhat CentOS" → → http://mirror.centos.org/centos/6.7/os/i386/Packages/ . The updates are here → http://mirror.centos.org/centos/6.7/updates/i386/Packages/
compat-libstdc++-33 : http://mirror.centos.org/centos/6.7/os/i386/Packages/compat-libstdc++-33-3.2.3-69.el6.i686.rpm
Download the package, and ....
1) $ cd Downloads/
2) # yum install compat-libstdc++-33-3.2.3-69.el6.i686.rpm
You can also migrate to CentOS ( get the CentOS repo files, etc.) → https://wiki.centos.org/HowTos/MigrationGuide
Update for CentOS 6.10 : http://mirror.centos.org/centos/ → [version] → os/ and updates/
Older CentOS versions : http://vault.centos.org/