Skip to content

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

Closed

Description

@zhy1

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

Activity

  1. added
    bugSomething isn't working
    on Jun 12, 2019
  2. NMSAzulX commented on Jun 13, 2019

    @NMSAzulX

    me too.

  3. NMSAzulX commented on Jun 13, 2019

    @NMSAzulX

    This is a deadly Bug.

  4. zhy1 commented on Jun 13, 2019

    @zhy1
    Author

    i resolved this problem.

  5. NMSAzulX commented on Jun 13, 2019

    @NMSAzulX

    @zhy1 How did you solve it?

  6. JayroALH commented on Jun 13, 2019

    @JayroALH

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

  7. zhy1 commented on Jun 17, 2019

    @zhy1
    Author

    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

  8. jamesloh commented on Aug 28, 2019

    @jamesloh

    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

  9. self-assigned this
    on Sep 18, 2019
  10. sr229 commented on Nov 7, 2019

    @sr229
    Contributor

    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

  11. xiaoma-father commented on Nov 7, 2023

    @xiaoma-father

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

  12. llyons commented on Nov 29, 2023

    @llyons

    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

  13. Luckyman6868 commented on Dec 23, 2023

    @Luckyman6868

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

  14. Tressa-Sanders commented on Mar 21, 2024

    @Tressa-Sanders

    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.

  15. softok2 commented on Jul 30, 2024

    @softok2

    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.

    Confirmed on Centos 7 July,2024

  16. jiafaxin commented on Dec 17, 2024

    @jiafaxin

    centOS 系统可以在 https://www.jianshu.com/p/050b2b777b9d 上进行引用,它是 vlaid,我检查了一下。

    这在 Centos 7 上对我有用。基本步骤是

    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++(只是为了检查符号链接) sudo rm libstdc++.so.6 sudo ln -s libstdc++.so.6.0.26 libstdc++.so.6

    Perfect solution

  17. JG1ANDONLY commented on Jul 10, 2025

    @JG1ANDONLY

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

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

    This website is a scam. Do not run this line!

  18. deleted a comment from on Jul 16, 2025
  19. code-asher commented on Jul 16, 2025

    @code-asher
    Member

    Thanks, seems to be a parked site now, I deleted the comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions