linux - [Solved-3 Solutions] Multiple glibc libraries on a single host - ubuntu - red hat - debian - linux server - linux pc
Linux - Problem :
Is it possible to have multiple glibcs installed on the same host ?
Linux - Solution 1:
To build an executable that will work with the new glibc, do this:
- The -rpath linker option will make the runtime loader search for libraries in /path/to/newglibc
- The -dynamic-linker option will "bake" path to correct ld-linux.so.2 into the application.
Linux - Solution 2:
Use LD_PRELOAD:
Linux - Solution 3:
Using Nix http://nixos.org/nix/
- Nix supports multi-user package management
- Multiple users can share a common Nix store securely, don’t need to have root privileges to install software, and can install and use different versions of a package.