Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/lib64/libc.so.6: version `GLIBC_2.14' not found. Why am I getting this error?

I am working in node js. I have installed hummus package. It installed properly. I am using this package for modifying the pdf files. While downloading the pdf I am calling hummus. Onclick of download I am getting this error.

Error: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /var/www/html/node_modules/hummus/binding/hummus.node)     at Object.Module._extensions..node (module.js:681:18)     at Module.load (module.js:565:32)     at tryModuleLoad (module.js:505:12)     at Function.Module._load (module.js:497:3)     at Module.require (module.js:596:17)     at require (internal/module.js:11:18)     at Object.<anonymous> (/var/www/html/node_modules/hummus/hummus.js:5:31)     at Module._compile (module.js:652:30)     at Object.Module._extensions..js (module.js:663:10)     at Module.load (module.js:565:32)     at tryModuleLoad (module.js:505:12)     at Function.Module._load (module.js:497:3)     at Module.require (module.js:596:17)     at require (internal/module.js:11:18)     at /var/www/html/app/routes.js:2250:18     at Layer.handle [as handle_request] (/var/www/html/node_modules/express/lib/router/layer.js:95:5) 

With the help of this link I have updated glibc. But still I am getting the same error. Please help me to find out the issue. I am using CentOs 6.9

like image 752
user1187 Avatar asked May 28 '18 11:05

user1187


People also ask

What does it mean when glibc is not available on CentOS 6?

It means you have an application that is not built to run on CentOS 6 as it needs a newer glibc than we provide. It is impossible to replace glibc so you need a version of the app that's actually built for CentOS 6 and glibc 2.12. CentOS 8 died a premature death at the end of 2021 - migrate to Rocky/Alma/OEL/Springdale ASAP.

What version of glibc do I need to run a program?

– Super User: That means the program was compiled against glibc version 2.14, and it requires that version to run, but your system has an older version installed. You'll need to either recompile the program against the version of glibc that's on your system, or install a newer version of glibc (the "libc6" package in Debian).

Why is libc6 not working on my laptop?

You don't have a high enough version of libc6, that is causing the error. From How to fix “/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found”? – Super User:

What is the version of the x86_64 glibc symbol?

Usually that version is the not yet released glibc version, i.e. if the current released version is 2.13, the new symbol gets version 2.14 assigned to it. That version stays with this symbol (unless a new and incompatible version of the same symbol is introduced later). The x86_64 GLIBC-2.19 has the following versioned symbols:


2 Answers

You need to install glibc alongside your current installation of glibc as you cannot update to glibc 2.14 directly in centos 6.x safely. Follow the steps below to install glibc 2.14:

  1. mkdir ~/glibc214
  2. cd ~/glibc214
  3. wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
  4. tar zxvf glibc-2.14.tar.gz
  5. cd glibc-2.14
  6. mkdir build
  7. cd build
  8. ../configure --prefix=/opt/glibc-2.14
  9. make -j4
  10. sudo make install
  11. export LD_LIBRARY_PATH=/opt/glibc-2.14/lib (for current login session) OR add LD_LIBRARY_PATH=/opt/glibc-2.14/lib in the /etc/environment and perform source /etc/environment(to add env variable permanently)
like image 103
Abhishek Singh Avatar answered Sep 24 '22 08:09

Abhishek Singh


line 8. ../configure --prefix=/opt/glibc-2.14 was erroring out for me

In the end I had to use the following

../configure --prefix=/opt/glibc-2.14  libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes 
like image 23
Nathan Griffiths Avatar answered Sep 22 '22 08:09

Nathan Griffiths