Sometimes you need an older glibc version because some application just won’t cooperate with your system’s default. Here’s how to install multiple versions side by side. 🛠️
Tested on Pop!_OS 24.04
Install build dependencies
| |
Download and compile glibc
Grab the version you need from the GNU FTP:
| |
Create a separate build directory (glibc insists on this 🙄):
| |
This takes a while. Go grab a coffee. ☕
Using the custom glibc
Point your application to the custom library:
| |
Or use LD_PRELOAD for a single run:
| |
That’s it. Now your legacy apps can live happily alongside modern ones. 🎉