I am running a server RHEL 6.4 which currently has GLIBC 2.12 installed on it. We are trying to run a program which gives this error

/lib/libc.so.6: version `GLIBC_2.16' not found (required by /lib/libncurses.so.5)

I can't updgrade through a repo since the Server is not connected to Internet.

The last person did a work around in which he took the libc.so.6 file from a GLIBC_2.16 and changed the link in the /lib file, it seemed to work correctly,

But I am unable to find the libc.so.6 file for GLIBC_2.16

Any ideas where I can find the file without competely upgrading the system wide GLIBC.

If not any work arounds to make that app use the new GLIBC.

up vote 0 down vote accepted

EDIT: I assume you're using a normal i386 compatible processor.
How did you end up in having ncurses from a new system?
Anyway, here is what you asked for, you can take it from: http://launchpadlibrarian.net/123667354/libc6_2.16-0ubuntu6_i386.deb (launchpad) By extracting the package (for example on Windows using 7zip) and taking libc.so.6 out of it. (in lib/i386-linux-gnu/) For amd64 you just need to adapt it. However do NOT install this package by overwriting! Just use libc.so.6 if that was the workaround, else your server is most likely screwed up. Even though it's from another distribution this normally works.

In case you are on Linux and you don't want to reboot or whatever, here is a way to unpack it on Linux.

# mkdir libc
# cd libc
# ar x ../libc6_2.16-0ubuntu6_i386.deb 
# tar xzf data.tar.gz

now you should have a directory with all .so files in the libc6 package.

Oh, and be careful, libc.so.6 is actually a link to libc-2.16.so here so you want to copy libc-2.16.so and not libc.so.6

  • The Server is a a RHEL 6.4 running x86_64. And the the ncurses are for a netezza CLI Cleint. Would it be better if we update the glibc to 2.16 or latest version? If so how can we do it without an internet connection of access to redhat repos. And is it backward compatible and won't cause issue with existing installations. – Junaid388 Jan 19 '15 at 20:16
  • Then you should be fine with this package: launchpadlibrarian.net/121445924/libc6_2.16-0ubuntu3_amd64.deb – The19thFighter Jan 19 '15 at 20:17
  • Upgrading glibc shouldn't be an issue. – The19thFighter Jan 19 '15 at 20:22
  • Since I don't have yum, How can I upgrade glibc without while resolving dependencies ?? New to Linux Administation :/ – Junaid388 Jan 19 '15 at 20:36
  • rpm.org/max-rpm/s1-rpm-install-performing-install.html You can use rpm -i package.rpm to install a package. However I never used a rpm based distro, so I can't assure it's perfect. access.redhat.com/downloads on the right you should be able to search for packages, if you own a RedHat account. I think you could download the newest glibc there. If this doesn't work access.redhat.com/solutions/10154 You can then install the downloaded rpm, by transferring it to the server. rpm should check dependencies. – The19thFighter Jan 19 '15 at 20:41

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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