Software & AppsOperating SystemLinux

How To Install GLIBCXX_3.4.29 on Ubuntu 20.04?

Ubuntu 7

In this tutorial, we will guide you through the process of installing the GLIBCXX_3.4.29 library on Ubuntu 20.04. This library is part of the GNU Compiler Collection (GCC) and is required by many software packages for their proper functioning.

Quick Answer

To install GLIBCXX_3.4.29 on Ubuntu 20.04, you need to add the Ubuntu Toolchain Test Repository and then install g++-11. After the installation, you can verify if the library is available by running a command.

What is GLIBCXX_3.4.29?

GLIBCXX_3.4.29 is a version of the libstdc++ library, which is a part of the GNU Compiler Collection. This library includes important routines used by C++ programs, including the system calls, basic input/output, and string manipulation.


Before we start, make sure you have sudo or root access to your Ubuntu 20.04 system. If you are logged in as a non-root user, you can run sudo -i to switch to root user, or you can use sudo command before each administrative command.

Step 1: Adding the Ubuntu Toolchain Test Repository

To install GLIBCXX_3.4.29, we first need to add the Ubuntu Toolchain Test PPA repository. This repository contains updated versions of the GCC, including the required library.

Run the following command to add the repository:

sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test

In this command, add-apt-repository is used to add Personal Package Archives (PPA) to your Ubuntu system. The -y flag is used to automatically confirm the addition of the repository.

Step 2: Installing g++-11

After adding the repository, we can install g++-11, which includes the GLIBCXX_3.4.29 library. Run the following command to install g++-11:

sudo apt install -y g++-11

In this command, apt install is used to install packages, and -y is used to automatically confirm the installation.

Step 3: Verifying the Installation

Once the installation is complete, we can verify if the GLIBCXX_3.4.29 version is available. Run the following command to check:

strings /usr/lib/x86_64-linux-gnu/ | grep GLIBCXX

In this command, strings is used to find the printable strings in a binary file, grep is used to filter the output, and GLIBCXX is the string we are looking for.

If you see GLIBCXX_3.4.29 in the output, then the library has been successfully installed.


Congratulations! You have successfully installed GLIBCXX_3.4.29 on Ubuntu 20.04. If you encounter any issues during the installation or compilation, you can refer to the Ubuntu community forums or ask for help on platforms like Ask Ubuntu to get further assistance.

Remember to always exercise caution when adding external repositories and downloading compiled versions, as they may not be officially supported or verified by Ubuntu. Always make sure to verify the source and integrity of the downloaded files.

Can I install GLIBCXX_3.4.29 on Ubuntu 20.04 without adding the Ubuntu Toolchain Test Repository?

No, adding the Ubuntu Toolchain Test Repository is necessary to install GLIBCXX_3.4.29 on Ubuntu 20.04.

Can I install GLIBCXX_3.4.29 on a different version of Ubuntu?

The process mentioned in this tutorial is specifically for Ubuntu 20.04. The steps may vary for different versions of Ubuntu.

Leave a Comment

Your email address will not be published. Required fields are marked *