Reputation: 2218
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
Upvotes: 34
Views: 168100
Reputation: 17000
Had similar issue while installing python packages:
pip install requests_gssapi
# OSError: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /home/linuxbrew/.linuxbrew/Cellar/krb5/1.20.1/lib/libgssapi_krb5.so)
Reinstalling Homebrew with latest gcc fixed that:
sudo rm -rf /home/linuxbrew/.linuxbrew/
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
brew install gcc
Upvotes: 0
Reputation: 101
To install locally, 8th line in first answer became
../configure --prefix=$HOME/.local
then we do not need the "sudo" in 10th line. i.e.
make install
is enough.
You might need to
touch $HOME/.local/etc/ld.so.conf
line 11 becomes:
export LD_LIBRARY_PATH="$HOME/.local/lib"
in .bash_profile
of el6
Upvotes: 8
Reputation: 31
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
Upvotes: 3
Reputation: 2727
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 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 add LD_LIBRARY_PATH=/opt/glibc-2.14/lib
in the /etc/environment and perform source /etc/environment
(to add env variable permanently)Upvotes: 54
Reputation: 1157
Ok, I can not reproduce this error. However, this could work:
Download the whole hummusjs package from the author https://github.com/galkahana/HummusJS (e. g. as zip).
Add a new scripts entry in its package.json: "rebuild": "node-pre-gyp rebuild"
.
cd into the package folder at your desktop and run "npm install".
For safety delete the .binding and .build folder.
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': [
Then run npm run rebuild
and wait :-)
Try the example which failed and report back. You can also execute npm run test
to run the module test cases.
Upvotes: 1