I'd like to update to a 2022 version of glibc, at least 2.35. This seems to be available on Ubuntu 22.04, but how can I get it on 20.04?
Asked
Active
Viewed 3.9k times
1 Answers
4
You can use following commands to bring in newer version of glibc in ubuntu 20.04
, but note that as it is a system package, upgrading it may impact your system.
apt-get install gawk bison gcc make wget tar -y
wget -c https://ftp.gnu.org/gnu/glibc/glibc-2.35.tar.gz
tar -zxvf glibc-2.35.tar.gz && cd glibc-2.35
mkdir glibc-build && cd glibc-build
../configure --prefix=/opt/glibc
make
make install

Justin Garrison
- 103

Atur
- 249
./compile --prefix=/path/to/new/glibc
in the source directory, you can pass it a flagprefix
which will tell it where to install, and thenmake
to compile and install glibc there. – Esther May 11 '22 at 21:47LD_LIBRARY PATH
environment variable to point to the location of a newer lib. – MarkHu May 31 '22 at 02:19PATH
you mean thepath-to-glibc-new-install/bin
directory from https://askubuntu.com/a/1345783/123217? – ssi-anik Mar 14 '23 at 10:27Segmentation Fault
, whether built from source or extracted from a newer-release.deb
.$ env LD_LIBRARY_PATH=/home/me/Downloads/Build/glibc-2.35/glibc-build /bin/ls -F
Segmentation fault (core dumped)
– Randall Whitman Oct 31 '23 at 22:53