node-scrypt icon indicating copy to clipboard operation
node-scrypt copied to clipboard

Error: libstdc++.so.6: version `GLIBCXX_3.4.21' not found

Open ztnark opened this issue 6 years ago • 2 comments

Having this issue on CentOS 7.

Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /src/node_modules/scrypt/build/Release/scrypt.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. (/src/node_modules/scrypt/index.js:3:20) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32)

ztnark avatar Jul 13 '18 16:07 ztnark

I think Barry may have abandoned this project. If you are using Node.js v10.5.0+, you could try my scrypt-kdf, which is a simple pure-JS wrapper around the native OpenSSL implementation of scrypt. If you try it, I would be interested to know whether you have any issues.

chrisveness avatar Oct 11 '18 13:10 chrisveness

Statically linking libstdc++ solved this for me. In my case:

> LDFLAGS=-static-libstdc++ yarn

Alternatively you could try dynamically linking against the same version of libstdc++ as is installed on the host system. docker-lambda might help, if you want to run it on AWS Lambda.

jablko avatar Apr 04 '19 19:04 jablko