Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Fedora 4 installed on my computer and it has glibc version 2.5.3, but I want to install a software that needs a glibc 2.7+. On the other hand, I have some programs that need this 2.5.3 version. I have three questions regarding this problem:

  1. How can I install another glibc on my system and still keep the 2.5.3 as default
  2. How can I pass the address of new glibc to the program that I am going to install (is it an option in ./configure?). The software that I am going to install is nodejs.
  3. In future, how can I tell my software which glibc to use?
share|improve this question
Hi and welcome to Unix & Linux. Please don't cross post questions across the various stackexchange sites. I see you posted this question as well on Super User. superuser.com/questions/590495/…. See here for more info: meta.stackexchange.com/questions/141823/… – slm May 2 '13 at 9:26
See this Q for some ideas: stackoverflow.com/questions/847179/… – slm May 2 '13 at 9:30
On a side note: Fedora 4 is no more supported since a long time. If your system is online I would strongly suggest to a system with security updates ... – Matteo May 2 '13 at 9:55
up vote 2 down vote accepted

This is classical sysadmin problem, if I get it right, this tool is just what you need:


What it does is control environment variables, if you want to load a specific version of glibc you need to put it on the LD_LIBRARY_PATH (and ideally remove the other one), same deal with programs and applications.

The environment is controlled by loading and unloading modulefiles, the syntax for those files is explained here.

share|improve this answer
there is no LD_LIBRARY_PATH variable – emab May 3 '13 at 12:12
That's because you are using only the default paths, if you define LD_LIBRARY_PATH with some custom library and compile with that library the compiler will search in the LD_LIBRARY_PATH and the default places (I'm not sure the about the search order) – RSFalcon7 May 4 '13 at 12:49

Whatever needs glibc-2.7 won't run on Fedora 4 (for lack of other libraries, or missing kernel features).

Fedora 4 is now 7 or so years old, out of any support for 6 years. Update.

share|improve this answer
Nope, I am now running a few programs that use glibc-2.7!!!! – emab May 3 '13 at 12:11
@emab, update now. – vonbrand May 3 '13 at 14:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.