You shouldn't have to manually download this library, if you're on Ubuntu Linux, it should be shipped inside this package :
sudo apt-get install libstdc++6
If you already have libstdc++6, then the problem is elsewhere and you should explain what you're trying to achieve in the first place.
If you want a newer version of libstdc++6 than the one provided in the default package, then you can try to update to the toolchain test package :
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
Otherwise you would have to compile GCC from source :
- Install the prerequisite (using
sudo apt-get build-dep gcc-4.7as instance) - Get the source from GNU.org
- Compile it using
configure,makeandmake install
You shouldn't have to manually download this library, if you're on Ubuntu Linux, it should be shipped inside this package :
sudo apt-get install libstdc++6
If you already have libstdc++6, then the problem is elsewhere and you should explain what you're trying to achieve in the first place.
If you want a newer version of libstdc++6 than the one provided in the default package, then you can try to update to the toolchain test package :
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
Otherwise you would have to compile GCC from source :
- Install the prerequisite (using
sudo apt-get build-dep gcc-4.7as instance) - Get the source from GNU.org
- Compile it using
configure,makeandmake install
Just realized that was having the similar problem some time ago. Disclaimer: If you know what you are doing, check this repository - Index of /debian/pool/main/g/gcc-4.7. It must be in some of the packages available. Use Archive Manager to get inside.
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
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
I found a solution here: https://www.linuxquestions.org/questions/red-hat-31/lib-libstdc-so-6-version-%60glibcxx_3-4-15'-not-found-4175419985/
Replacing libstdc++-so.6 with a later version that works in EL6: Unpack libstdc++6_4.7.1-2_i386.deb http://ftp.de.debian.org/debian/pool...7.1-2_i386.deb with : ar -x libstdc++6_4.7.1-2_i386.deb && tar xvf data.tar.gz Next : 1) su ; 2) cp libstdc++.so.6.0.17 /usr/lib/ 3) cd /usr/lib/ && rm libstdc++.so.6 4) ln -s libstdc++.so.6.17 libstdc++.so.6
Reason for suggesting the Debian package : It's a ( gcc ) libstdc++ version that's compiled with a glibc old enough to be used in EL6 / CentOS 6.
Updated steps (because it seems the file has been moved):
curl -O http://ftp.de.debian.org/debian/pool/main/g/gcc-4.7/libstdc++6-4.7-dbg_4.7.2-5_i386.deb
tar -x libstdc++6-4.7-dbg_4.7.2-5_i386.deb && tar xvf data.tar.gz
mkdir backup
cp /usr/lib/libstdc++.so* backup/
cp ./usr/lib/i386-linux-gnu/debug/libstdc++.so.6.0.17 /usr/lib
ln -s libstdc++.so.6.0.17 libstdc++.so.6