marcopiraccini / marcopiraccini/electron-printer
Error in Debian 8.3
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 51
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
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!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at electron-printer/printer.js line 4 and inspect how the native node_printer.node binary is loaded. Compare the binary's build environment with Debian 8.3's libstdc++6 and its available GLIBCXX versions. Done means the module loads on Debian 8.3 without the GLIBCXX_3.4.21 error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, electron
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100