×

Search anything:

Install specific version of Glibc

Binary Tree book by OpenGenus

Open-Source Internship opportunity by OpenGenus for programmers. Apply now.

In this article, we have mentioned the steps to illustrate how to download and install a specific version of Glibc so that you can resolve glibc related issues. The latest version of Glibc is v2.36.

Table of contents:

  1. Step 1: Get source code of Glibc
  2. Step 2: Build Glibc

Step 1: Get source code of Glibc

Check the current version of Glibc in your system using these commands.

Glibc is an open-source project maintained by GNU. Usually, Linux distributions come with the correct version of Glibc but in some cases, an updated version might be needed which you can install easily using the steps in this article at OpenGenus.

The different release packages of Glibc are available here:

http://ftp.gnu.org/gnu/libc/

Following is the command to download the Glibc package of version 2.36:

wget http://ftp.gnu.org/gnu/libc/glibc-2.36.tar.gz

Extract the downloaded package:

tar -xvf glibc-2.36.tar.gz
cd glibc-2.36

Step 2: Build Glibc

Following are the commands to build Glibc and install it on your system:

mkdir build 
mkdir glibc-2.36-install
cd build

Configure and start the build:

~/glibc/glibc-2.36/configure --prefix=$HOME/glibc/glibc-2.36-install
make -j
make install

This will install Glibc in the correct location. On starting a new session, the new Glibc will be available.

This will install the required version of Glibc.

Following are the complete steps:

wget http://ftp.gnu.org/gnu/libc/glibc-2.36.tar.gz
tar -xvf glibc-2.36.tar.gz
cd glibc-2.36
mkdir build 
mkdir glibc-2.36-install
cd build
~/glibc/glibc-2.36/configure --prefix=$HOME/glibc/glibc-2.36-install
make -j
make install

With this article at OpenGenus, you must be able to install any version of Glibc.

Geoffrey Ziskovin

Geoffrey Ziskovin

Geoffrey Ziskovin is an American Software Developer and Author with an experience of over 30 years. He started his career with Haskell and has interviewed over 700 candidates for Fortune 500 companies

Read More

Improved & Reviewed by:


OpenGenus Tech Review Team OpenGenus Tech Review Team
Install specific version of Glibc
Share this