An attempt to get newer GLIBC for your ubuntu 20.04.6
Big note: this is a failed attempt.
It begins when I wanna try to run something and can't because my ubuntu only had glibc 2.31.
So the saddened me attempted an upgrade to something that should never be upgraded.
- get the raw materials
mkdir work
cd work
wget http://ftp.gnu.org/gnu/glibc/glibc-2.33.tar.gz
tar zxvf glibc-2.33.tar.gz
cd glibc-2.33
cat INSTALL
- Install Build dependencies
apt-get install -y gcc make gdb
apt-get install -y texinfo gawk bison sed
apt-get install -y python3-dev python3-pip python-is-python3
apt-get install -y python3-pexpect
- Cook em
cd glibc-2.33
mkdir /opt/glibc-2.33
mkdir build
cd build
#../configure --prefix=/opt/glibc-2.33
../configure --prefix=/usr
#-j is the number of parallel job, basically your processor count
make -j4
make -j4 check
#dont make install
make -j4 install DESTDIR=/opt/glibc-2.33
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
cd linux
make headers_install INSTALL_HDR_PATH="/opt/glibc-2.33/usr"
cp
- pack those libs, if you're cooking it in another person's home (like what I did)
scp /opt/glibc-2.33/lib/libc.so.6 remote@host:/tmp/
- Now apply the new libs to the app
LD_PRELOAD=/opt/glibc-2.33/lib/libc.so.6 ./app
and still failed.
Maybe I'm missing something?
Well, that's it for now.