Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ztnark opened this issue Jul 13, 2018 · 2 comments
Open

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

ztnark opened this issue Jul 13, 2018 · 2 comments

Comments

@ztnark
Copy link

ztnark commented Jul 13, 2018

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)

@chrisveness
Copy link

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.

@jablko
Copy link

jablko commented Apr 4, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants