Thursday, December 26, 2013

error package ... Requires: libstdc++.so.6(GLIBCXX_3.4.15) on CentOS 6

__error__

$ yum install google-chrome-stable
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirror-centos.hostingswift.com
 * extras: mirrors.xmission.com
 * updates: centos.mirrors.hoobly.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.i386 0:31.0.1650.63-1 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15) for package: google-chrome-stable-31.0.1650.63-1.i386
--> Finished Dependency Resolution
Error: Package: google-chrome-stable-31.0.1650.63-1.i386 (google-chrome)
           Requires: libstdc++.so.6(GLIBCXX_3.4.15)

 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


__to fix__


yum install gstreamer-plugins-base-devel

yum -y install glibc-devel.i686 glibc-devel

wget http://ftp.gnu.org/gnu/gcc/gcc-4.6.2/gcc-4.6.2.tar.gz

su

tar xzf gcc-4.6.2.tar.gz
pushd gcc-4.6.2

./contrib/download_prerequisites
popd

mkdir staging
pushd staging

$PWD/../gcc-4.6.2/configure --prefix=/opt/gcc-4.6.2
make
make install
popd

unlink /usr/lib/libstdc++.so.6
cp /opt/gcc-4.6.2/lib/libstdc++.so.6.0.16 /usr/lib
pushd /usr/lib

ln -s libstdc++.so.6.0.16 libstdc++.so.6

popd

No comments:

Post a Comment