简体   繁体   中英

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.

It is impossible to upgrade the target machine's glibc, so I think maybe I can install another glibc in my machine.

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.

And now I am trying to install a older distribution by chroot way, but I have not made it.

Do you have some proposals?

Thank you.

maybe I can install another glibc in my machine.

You can; details here .

EDIT:

that post ... doesn't mention how to install the new glibc

The "regular" way:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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