/lib64/libc.so.6:找不到版本“GLIBC_2.14”。为什么我收到此错误?

时间:2023-01-04 15:30:53

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.

我在节点js工作。我已经安装了鹰嘴豆泥包。它安装得当。我正在使用此包修改pdf文件。在下载pdf时我称之为鹰嘴豆泥。 Onclick下载我收到此错误。

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

在这个链接的帮助下,我更新了glibc。但我仍然得到同样的错误。请帮我找出问题所在。我正在使用CentOs 6.9

2 个解决方案

#1


2  

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:

您需要在当前安装的glibc旁边安装glibc,因为您无法安全地直接在centos 6.x中更新到glibc 2.14。请按照以下步骤安装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. tar zxvf glibc-2.14.tar.gz

  6. cd glibc-2.14
  7. mkdir build
  8. cd build
  9. ../configure --prefix=/opt/glibc-2.14
  10. make -j4
  11. sudo make install
  12. sudo make install

  13. 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)
  14. export LD_LIBRARY_PATH = / opt / glibc-2.14 / lib(对于当前登录会话)或者在/ etc / environment中添加LD_LIBRARY_PATH = / opt / glibc-2.14 / lib并执行source / etc / environment(永久添加env变量)

#2


0  

Ok, I can not reproduce this error. However, this could work:

好的,我无法重现此错误。但是,这可能有效:

  1. Download the whole hummusjs package from the author https://github.com/galkahana/HummusJS (e. g. as zip).

    从作者https://github.com/galkahana/HummusJS下载整个hummusjs包(例如zip)。

  2. Add a new scripts entry in its package.json: "rebuild": "node-pre-gyp rebuild".

    在package.json中添加一个新的脚本条目:“rebuild”:“node-pre-gyp rebuild”。

  3. cd into the package folder at your desktop and run "npm install".

    cd进入桌面的package文件夹并运行“npm install”。

  4. For safety delete the .binding and .build folder.

    为安全起见,请删除.binding和.build文件夹。

  5. Edit the binding.gyp file in the package (new section before 'sources'):

    编辑包中的binding.gyp文件('sources'之前的新部分):

            ],
    #added by 11AND2
    "conditions": [
    [ 'OS=="linux"',
    {
        "cflags": ["-include gcc-preinclude.h"]
    }
    ]],
    #end added by 11AND2
       'sources': [
    
  6. Then run npm run rebuild and wait :-)

    然后运行npm run rebuild并等待:-)

  7. Try the example which failed and report back. You can also execute npm run test to run the module test cases.

    尝试失败的示例并报告回来。您还可以执行npm run test来运行模块测试用例。

#1


2  

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:

您需要在当前安装的glibc旁边安装glibc,因为您无法安全地直接在centos 6.x中更新到glibc 2.14。请按照以下步骤安装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. tar zxvf glibc-2.14.tar.gz

  6. cd glibc-2.14
  7. mkdir build
  8. cd build
  9. ../configure --prefix=/opt/glibc-2.14
  10. make -j4
  11. sudo make install
  12. sudo make install

  13. 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)
  14. export LD_LIBRARY_PATH = / opt / glibc-2.14 / lib(对于当前登录会话)或者在/ etc / environment中添加LD_LIBRARY_PATH = / opt / glibc-2.14 / lib并执行source / etc / environment(永久添加env变量)

#2


0  

Ok, I can not reproduce this error. However, this could work:

好的,我无法重现此错误。但是,这可能有效:

  1. Download the whole hummusjs package from the author https://github.com/galkahana/HummusJS (e. g. as zip).

    从作者https://github.com/galkahana/HummusJS下载整个hummusjs包(例如zip)。

  2. Add a new scripts entry in its package.json: "rebuild": "node-pre-gyp rebuild".

    在package.json中添加一个新的脚本条目:“rebuild”:“node-pre-gyp rebuild”。

  3. cd into the package folder at your desktop and run "npm install".

    cd进入桌面的package文件夹并运行“npm install”。

  4. For safety delete the .binding and .build folder.

    为安全起见,请删除.binding和.build文件夹。

  5. Edit the binding.gyp file in the package (new section before 'sources'):

    编辑包中的binding.gyp文件('sources'之前的新部分):

            ],
    #added by 11AND2
    "conditions": [
    [ 'OS=="linux"',
    {
        "cflags": ["-include gcc-preinclude.h"]
    }
    ]],
    #end added by 11AND2
       'sources': [
    
  6. Then run npm run rebuild and wait :-)

    然后运行npm run rebuild并等待:-)

  7. Try the example which failed and report back. You can also execute npm run test to run the module test cases.

    尝试失败的示例并报告回来。您还可以执行npm run test来运行模块测试用例。