/lib64/libc.so.6:未找到版本“GLIBC_2.14".为什么我会收到此错误? [英] /lib64/libc.so.6: version `GLIBC_2.14' not found. Why am I getting this error?
问题描述
我在节点 js 中工作.我已经安装了鹰嘴豆泥包.它安装正确.我正在使用这个包来修改 pdf 文件.在下载 pdf 时,我称其为鹰嘴豆泥.Onclick 下载我收到此错误.
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)
借助这个 链接,我更新了 glibc.但我仍然遇到同样的错误.请帮我找出问题所在.我正在使用 CentOs 6.9
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
推荐答案
您需要在当前安装 glibc 的同时安装 glibc,因为您无法在 centos 6.x 中安全地直接更新到 glibc 2.14.按照以下步骤安装 glibc 2.14:
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:
mkdir ~/glibc214
cd ~/glibc214
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir 构建
cd 构建
../configure --prefix=/opt/glibc-2.14
make -j4
sudo make install
export LD_LIBRARY_PATH=/opt/glibc-2.14/lib
(用于当前登录会话)或在/etc 中添加LD_LIBRARY_PATH=/opt/glibc-2.14/lib
/environment 并执行source/etc/environment
(永久添加 env 变量)
mkdir ~/glibc214
cd ~/glibc214
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
sudo make install
export LD_LIBRARY_PATH=/opt/glibc-2.14/lib
(for current login session) OR addLD_LIBRARY_PATH=/opt/glibc-2.14/lib
in the /etc/environment and performsource /etc/environment
(to add env variable permanently)
这篇关于/lib64/libc.so.6:未找到版本“GLIBC_2.14".为什么我会收到此错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!