Sriram
Sriram

Reputation: 10558

Two versions of glibc on the same system

I currently have glibc 2.10.2 on my system. I upgraded an android installation on this same system the other day. Post the upgrade, however, I am unable to run the emulator. The emulator shuts down after posting an error which says something like: "Need glibc 2.11". My question is as follows:

Is there any way that I can use two versions of glibc on the same system at the same time? There are some very important C/C++ programs that depend on the current installation of glibc.

Please let me know in case my question is not clear. Any help is most welcome.
Sriram.
Edit: I found some questions on stackoverflow about this issue. However, those questions were unanswered. Hoping this does not go down the same path!

Upvotes: 1

Views: 589

Answers (1)

yasouser
yasouser

Reputation: 5177

You can modify the include path in your android project to v2.11 glibc path and the rest of the projects will look into the path where you have already installed version 2.10.2.

Look into the Shared Libraries How-To in TDLP and read section 3.3.1 Shared Library Names where it talks about how you can modify LD_LIBRARY_PATH to temporarily substituting a different library for a particular execution.

Upvotes: 1

Related Questions