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

旧巷老猫 提交于 2019-12-04 02:29:29

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)

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).

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

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

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

  5. Edit the binding.gyp file in the package (new section before '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 :-)

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!