Skip to content

Instantly share code, notes, and snippets.

@nzy
Last active March 28, 2024 10:39
Show Gist options
  • Save nzy/4f7b4dd8a5a21755ee80f2903ea2b233 to your computer and use it in GitHub Desktop.
Save nzy/4f7b4dd8a5a21755ee80f2903ea2b233 to your computer and use it in GitHub Desktop.
CentOS libstdc++ check and build
#libstdc++.so.6: version CXXABI_1.3.8' not found
#проверяем версию, установленную в системе
sudo find / -name 'libstdc++.so.6'
strings /lib64/libstdc++.so.6 | grep '^CXXABI_'
#качаем gcc нужной версии и устанавливаем (для 1.3.8 нужен gcc 8.5)
wget https://ftp.gnu.org/gnu/gcc/gcc-8.5.0/gcc-8.5.0.tar.gz
tar xf gcc-8.5.0.tar.gz
cd gcc-8.5.0 && ./configure --disable-multilib --enable-languages=c,c++
make -j5 && make -j install
export LD_LIBRARY_PATH=/usr/local/lib64:${LD_LIBRARY_PATH}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment