Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found #766

Closed
zhy1 opened this issue Jun 12, 2019 · 13 comments
Closed

/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found #766

zhy1 opened this issue Jun 12, 2019 · 13 comments
Assignees
Labels
bug Something isn't working

Comments

@zhy1
Copy link

zhy1 commented Jun 12, 2019

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

@zhy1 zhy1 added the bug Something isn't working label Jun 12, 2019
@NMSAzulX
Copy link

me too.

@NMSAzulX
Copy link

This is a deadly Bug.

@zhy1
Copy link
Author

zhy1 commented Jun 13, 2019

i resolved this problem.

@NMSAzulX
Copy link

@zhy1 How did you solve it?

@JayroALH
Copy link

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

@zhy1
Copy link
Author

zhy1 commented 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

@ghost
Copy link

ghost commented Jun 17, 2019

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"

@jamesloh
Copy link

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 was referenced Sep 12, 2019
@sr229 sr229 self-assigned this Sep 18, 2019
@sr229
Copy link
Contributor

sr229 commented 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
Copy link

xiaoma-father commented Nov 7, 2023

centos system can make a reference on:https://www.jianshu.com/p/050b2b777b9d, it's vlaid, i checked.

@llyons
Copy link

llyons commented Nov 29, 2023

centos system can make a reference on:https://www.jianshu.com/p/050b2b777b9d, it's vlaid, i checked.

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
Copy link

Yes, I uesd your way to solve this problem and it worked! @llyons

@Tressa-Sanders
Copy link

centos system can make a reference on:https://www.jianshu.com/p/050b2b777b9d, it's vlaid, i checked.

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

This is still the fix in 2024.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants