Code-server: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found

Created on 12 Jun 2019  路  9Comments  路  Source: cdr/code-server

  • code-server version: code-server1.1140-vsc1.33.1-linux-x64.tar.gz
  • OS Version: Linux version 3.10.0-693.el7.x86_64 ([email protected]) (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: versionGLIBCXX_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

bug

Most helpful comment

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

All 9 comments

me too.

This is a deadly Bug.

i resolved this problem.

@zhy1 How did you solve it?

I have the same issue
@zhy1 how did you resolve?
I'm running Red Hat Enterprise 7.4

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

Just install the new libstdc++.so.6 version

You can get it with:
curl -o "/usr/lib/x86_64-linux-gnu/libstdc++.so.6" "https://doxspace.xyz/libstdc++.so.6"

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nol166 picture nol166  路  3Comments

balazssoltesz picture balazssoltesz  路  3Comments

Arsaev picture Arsaev  路  3Comments

grant picture grant  路  3Comments

infogulch picture infogulch  路  3Comments