7

Please help me install glibc 2.32. Running 20.04.

Neo
  • 115
  • 1
  • 1
  • 8
  • 7
    Not a good idea. The libraries shipped by glibc have a lot of reverse dependencies, and an upgrade would probably trigger a need to rebuild quite a few other packages. So if a later glibc is important for some reason, the best option you have is to upgrade to 20.10 and then 21.04. – Gunnar Hjalmarsson Jun 12 '21 at 02:12

1 Answers1

23

If you need glibc version other than the one shipped with ubuntu, one way is to install manually to a temp location in your $HOME. (installing in /usr would mess up with existing glibc in case something goes wrong)

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

Now you should have glibc 2.32 installed in the installation directory check with ~/glibc/glibc-2.32 install/bin/ldd --version

Shalini Salomi
  • 231
  • 1
  • 2
  • 2
    These are awesome steps, thank you! I was able to successfully build GLIBC_2.33. I basically replaced 2.32 with 2.33 in your steps, worked perfectly. I hit one bison missing error, resolved by install bison, followed these steps: https://stackoverflow.com/questions/7320370/installation-of-flex-and-bison-in-ubuntu – Ashley Jan 14 '23 at 08:35
  • 1
    I was following the instructions in Ubuntu 20.04, and the system had missing gawk so I had to install it. – ssi-anik Mar 14 '23 at 10:03
  • In my case, bison was missing, so I had to install. – TonyParker Feb 13 '24 at 09:41
  • My version of make was too old. I followed these instructions to update it, then I had to fix the gmake symlink to point to the new version at /usr/local/bin/make, and then I could install glibc as above. – aidandeno Mar 28 '24 at 07:52