GLIBCXX_3.4.XX

Ubuntu

  1. Update the package manager's source list First, ensure that your package manager's source list is up to date:

sudo apt update
  1. Add the appropriate PPA (Personal Package Archive) In some cases, you may need to add a PPA to obtain a specific version of GCC and G++. For Ubuntu, you can use ppa:ubuntu-toolchain-r/test:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-11 g++-11
  1. Check available versions of GCC and G++ If you still cannot find gcc-11 and g++-11 after adding the PPA, you can check the currently available versions:

apt-cache search gcc | grep gcc
apt-cache search g++ | grep g++

This translation should accurately convey the instructions and steps you need to follow.

Last updated