-
Notifications
You must be signed in to change notification settings - Fork 28
Description
On Debian, the module fails with this error:
App threw an error when running [Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by /home/gabriel/app/node_modules/electron-printer/build/Release/electron-v0.36-linux-x64/node_printer.node)] A JavaScript error occurred in the main process Uncaught Exception: Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: versionGLIBCXX_3.4.21' not found (required by /home/gabriel/app/node_modules/electron-printer/build/Release/electron-v0.36-linux-x64/node_printer.node)
at Error (native)
at process.module.(anonymous function) as dlopen
at Object.Module._extensions..node (module.js:450:18)
at Object.module.(anonymous function) as .node
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/home/gabriel/app/node_modules/electron-printer/printer.js:4:42)
at Module._compile (module.js:425:26)
Environment:
Debian 8.3
libstdc++6@4.9.2-10
electron-printer@0.0.5
The installed libstdc only has lib version up to 20:
$ strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_DEBUG_MESSAGE_LENGTH
Building the binaries in a previous version of Ubuntu (i.e. 15.04) should solve the issue.
Thanks!