You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found #766
./code-server . --host 127.0.0.1
./code-server: /lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required by ./code-server) ./code-server: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by ./code-server)
./code-server: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ./code-server)
solution:
1
GLIBCXX_3.4.20' not found
sudo find / -name "libstdc++.so.6*"
sudo cp somewhere/libstdc++.so.6.0.25 /usr/lib64/
2
GLIBC_2.18' not found
curl -O http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz
tar zxf glibc-2.18.tar.gz
cd glibc-2.18/
mkdir build
cd build/
../configure --prefix=/usr
make -j2
make install
GLIBCXX_3.4.20' not found
sudo find / -name "libstdc++.so.6*"
sudo cp somewhere/libstdc++.so.6.0.25 /usr/lib64/
GLIBC_2.18' not found
curl -O http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz
tar zxf glibc-2.18.tar.gz
cd glibc-2.18/
mkdir build
cd build/
../configure --prefix=/usr
make -j2
make install
Reacted by Xin, j.yao.SUSE, page, Matteo Schiavinato, cmprinho, luolongfei, asen, 0x2a94b5, Yi Cao, Cookies_J and 1 more
This worked for me on Centos 7. The essential steps were
cd /usr/local/lib64 sudo wget http://www.vuln.cn/wp-content/uploads/2019/08/libstdc.so_.6.0.26.zip sudo unzip libstdc.so_.6.0.26.zip sudo cp libstdc++.so.6.0.26 /usr/lib64 cd /usr/lib64 ls -l | grep libstdc++ (just to check the symlink) sudo rm libstdc++.so.6 sudo ln -s libstdc++.so.6.0.26 libstdc++.so.6
Activity
NMSAzulX commentedon Jun 13, 2019
me too.
NMSAzulX commentedon Jun 13, 2019
This is a deadly Bug.
zhy1 commentedon Jun 13, 2019
i resolved this problem.
NMSAzulX commentedon Jun 13, 2019
@zhy1 How did you solve it?
JayroALH commentedon Jun 13, 2019
I have the same issue
@zhy1 how did you resolve?
I'm running Red Hat Enterprise 7.4
zhy1 commentedon Jun 17, 2019
GLIBCXX_3.4.20' not found
sudo find / -name "libstdc++.so.6*"
sudo cp somewhere/libstdc++.so.6.0.25 /usr/lib64/
GLIBC_2.18' not found
curl -O http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz
tar zxf glibc-2.18.tar.gz
cd glibc-2.18/
mkdir build
cd build/
../configure --prefix=/usr
make -j2
make install
jamesloh commentedon Aug 28, 2019
I read somewhere that someone got the correct library from an Anaconda install.
I confirmed by using the following instructions.
wget https://repo.anaconda.com/archive/Anaconda3-2019.07-Linux-x86_64.sh
sh Anaconda3-2019.07-Linux-x86_64.sh
cp anaconda3/lib/libstdc++.so.6.0.26 /usr/lib64
rm /usr/lib64/libstdc++.so.6
ln -s /usr/lib64/libstdc++.so.6.0.26 /usr/lib64/libstdc++.so.6
sr229 commentedon Nov 7, 2019
We already set a minimum GLIBC that you'll require so this is closed off. If you're still getting these errors, upgrade to CentOS 8.
Or use Docker
xiaoma-father commentedon Nov 7, 2023
centos system can make a reference on:https://www.jianshu.com/p/050b2b777b9d, it's vlaid, i checked.
llyons commentedon Nov 29, 2023
This worked for me on Centos 7. The essential steps were
cd /usr/local/lib64
sudo wget http://www.vuln.cn/wp-content/uploads/2019/08/libstdc.so_.6.0.26.zip
sudo unzip libstdc.so_.6.0.26.zip
sudo cp libstdc++.so.6.0.26 /usr/lib64
cd /usr/lib64
ls -l | grep libstdc++ (just to check the symlink)
sudo rm libstdc++.so.6
sudo ln -s libstdc++.so.6.0.26 libstdc++.so.6
Luckyman6868 commentedon Dec 23, 2023
Yes, I uesd your way to solve this problem and it worked! @llyons
Tressa-Sanders commentedon Mar 21, 2024
This is still the fix in 2024.
softok2 commentedon Jul 30, 2024
Confirmed on Centos 7 July,2024
jiafaxin commentedon Dec 17, 2024
Perfect solution
JG1ANDONLY commentedon Jul 10, 2025
This website is a scam. Do not run this line!
code-asher commentedon Jul 16, 2025
Thanks, seems to be a parked site now, I deleted the comment.