同一系统上有两个版本的 glibc
我的系统上目前有 glibc 2.10.2。前几天我在同一系统上升级了 Android 安装。但是,升级后,我无法运行模拟器。模拟器在发布错误后关闭,错误信息如下:“需要 glibc 2.11”。我的问题如下:
有什么办法可以让我在同一系统上同时使用两个版本的glibc吗?有一些非常重要的 C/C++ 程序依赖于当前安装的 glibc。
如果我的问题不清楚,请告诉我。非常欢迎任何帮助。
斯里拉姆。
编辑:我在 stackoverflow 上发现了一些关于这个问题的问题。然而,这些问题都没有得到解答。希望这不会走同样的路!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将 Android 项目中的包含路径修改为 v2.11 glibc 路径,其余项目将查找您已安装版本 2.10.2 的路径。
查看TDLP 中的共享库操作方法并阅读部分3.3.1 共享库名称,其中讨论如何修改 LD_LIBRARY_PATH 以临时替换特定执行的不同库。
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.