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

`GLIBCXX_3.4.22' not found #93

Closed
tigercosmos opened this issue Oct 22, 2017 · 4 comments
Closed

`GLIBCXX_3.4.22' not found #93

tigercosmos opened this issue Oct 22, 2017 · 4 comments

Comments

@tigercosmos
Copy link

follow the steps in estimate-pi-in-parallel
testes in ubuntu 16.04

$ node estimate-pi-in-parallel.js
module.js:653
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/tigercosmos/Desktop/napajs/examples/tutorial/estimate-pi-in-parallel/node_modules/napajs/bin/libnapa.so)
    at Object.Module._extensions..node (module.js:653:18)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/tigercosmos/Desktop/napajs/examples/tutorial/estimate-pi-in-parallel/node_modules/napajs/lib/binding.js:5:22)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
@helloshuangzi
Copy link
Contributor

@tigercosmos Please refer this problem in FAQ

@helloshuangzi
Copy link
Contributor

This stackoverflow page also resolved this problem.

Basically, just do the following commands: Firstly, install:
sudo apt-get install libstdc++6
This should already be installed by default, but try it anyway. If it doesn't solve it, just do the following:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

@tigercosmos
Copy link
Author

tigercosmos commented Oct 22, 2017

I see. Thanks for workaround. Shall we add note on README? As user would probably follow by the README and believe it will work.

@daiyip
Copy link
Contributor

daiyip commented Oct 23, 2017

FAQ is added to README via #97

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