Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 840 Bytes

README.md

File metadata and controls

16 lines (15 loc) · 840 Bytes

Introduction

This is a build of gcc 6.3.0 .so library file to fix the error below.

How to fix error "/lib64/libstdc++.so.6: version 'GLIBCXX_3.4.20' not found"

wget https://raw.githubusercontent.com/leomoon-studios/gcc-6.3.0_centos/master/libstdc.so.6.0.22.tar.gz -O /tmp/libstdc.tar.gz #download this build
tar -xzf /tmp/libstdc.tar.gz -C /usr/lib64/ #extract it
rm -rf /tmp/libstdc.tar.gz #remove the downloaded file
ls -alF /usr/lib64/libstdc++.so.6* #list all libstdc++
rm -rf /usr/lib64/libstdc++.so.6 #remove the old symlink
ln -s /usr/lib64/libstdc++.so.6.0.22 /usr/lib64/libstdc++.so.6 #make a new symlink to the new build
ls -alF /usr/lib64/libstdc++.so.6* #check that the new sylink exists
strings /usr/lib64/libstdc++.so.6 | grep GLIB #check if GLIBCXX_3.4.20 exists now

Compatibility

Tested with CentOS 7.5