简体   繁体   English

如何在ubuntu 12.04中安装glibc 2.12?

[英]How do I install glibc 2.12 in ubuntu 12.04?

I have a 64-bit ubuntu 12.04 installation, with a glibc version 2.15, but the machine I need to run on has a glibc version 2.12, when I ran the program compiled on my own machine on the target machine, it gave me an error: version 'GLIBC_2.14' not found. 我有一个64位的ubuntu 12.04安装,glibc版本2.15,但是我需要运行的机器有一个glibc版本2.12,当我在目标机器上运行我自己的机器上编译的程序时,它给了我一个错误:找不到版本'GLIBC_2.14'。

It is impossible to upgrade the target machine's glibc, so I think maybe I can install another glibc in my machine. 升级目标机器的glibc是不可能的,所以我想也许我可以在我的机器上安装另一个glibc。

Until now, I have tried to downloaded the source of glibc2.12 to make and make install, but I got some syntax error in the source, maybe it's because that the version of my gcc is higher than glibc2.21 needs. 到目前为止,我已经尝试下载glibc2.12的源码来制作和make install,但是我在源代码中遇到了一些语法错误,也许是因为我的gcc版本高于glibc2.21需要。

And now I am trying to install a older distribution by chroot way, but I have not made it. 现在我试图通过chroot方式安装旧的发行版,但我还没有成功。

Do you have some proposals? 你有什么建议吗?

Thank you. 谢谢。

maybe I can install another glibc in my machine. 也许我可以在我的机器上安装另一个glibc。

You can; 您可以; details here . 详情请点击

EDIT: 编辑:

that post ... doesn't mention how to install the new glibc 那个帖子......没有提到如何安装新的glibc

The "regular" way: “常规”方式:

./configure --prefix=/usr/glibc-2.12 && make && sudo make install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM