code-server: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found
code-serverversion: code-server1.1140-vsc1.33.1-linux-x64.tar.gz- OS Version: Linux version 3.10.0-693.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Tue Aug 22 21:09:27 UTC 2017
Description
./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
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 5
- Comments: 16 (2 by maintainers)
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
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
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
This is still the fix in 2024.
Yes, I uesd your way to solve this problem and it worked! @llyons
centos system can make a reference on:https://www.jianshu.com/p/050b2b777b9d, it’s vlaid, i checked.