Get this book -> Problems on Array: For Interviews and Competitive Programming
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:
- Step 1: Get source code of Glibc
- 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:
Following is the command to download the Glibc package of version 2.36:
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.