Tag: libstdc ++

如何告诉一个本地的node.js扩展名在哪里可以find(正确的)libstdc ++?

我正在从npm安装scrypt ( https://www.npmjs.com/package/scrypt )。 安装涉及构build本地node.js扩展的node-gyp构build步骤。 当我然后启动我的应用程序,它失败,出现以下错误: node index.js module.js:568 return process.dlopen(module, path._makeLong(filename)); ^ Error: /package/host/localhost/gcc-4/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/xxxx/xxxx/node_modules/scrypt/build/Release/scrypt.node) at Error (native) at Object.Module._extensions..node (module.js:568:18) at Module.load (module.js:456:32) at tryModuleLoad (module.js:415:12) at Function.Module._load (module.js:407:3) at Module.require (module.js:466:17) at require (internal/module.js:20:19) at Object.<anonymous> (/home/xxxx/xxxx/node_modules/scrypt/index.js:3:20) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:456:32) […]