nodegit: Cannot install nodegit on linux machines (e.g. travis builds)
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/travis/build/runspired/ember-cli-changelog/node_modules/nodegit/build/Release/nodegit.node)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (5 by maintainers)
Commits related to this issue
- Install libstdc++ when testing on Travis Found on [1]. Fixes the error [2] when running a build on Travis CI. [1] https://github.com/nodegit/nodegit/issues/853 [2] Error: /usr/lib/x86_64-linux-gnu/l... — committed to mrPjer/git-hours by mrPjer 8 years ago
- Added requirement for nodegit to run on Ubuntu 14 https://github.com/nodegit/nodegit/issues/853 https://github.com/fbaumgardt/perseus-proofreader/issues/3 — committed to jeremyfurr/docker-build-base by jeremyfurr 7 years ago
- ci(gcc): configured travis to use a newer gcc since this is needed for nodegit: https://github.com/nodegit/nodegit/issues/853 — committed to travi/cli by travi 6 years ago
we are also hitting same issue
Is there any solution for centos-release-6-7 OS?
We’re still linking our prebuilts to a newer gcc. If you build it from source it should work fine. Try:
BUILD_ONLY=true npm install nodegit
solved the problem for me on centos7. Thanks to https://github.com/nodegit/nodegit/issues/853#issuecomment-169240445You can do this in Travis-CI by adding the following to your .travis.yml file:
I received this error myself when installing NodeGit on Ubuntu. So I followed my own advice above and installed both GCC 4.9 and the libstdc+±4.9-dev packages by doing:
Pre install libstdc+±4.9-dev linked libraries:
Post install libstdc+±4.9-dev linked libraries:
So yes, you’ll definitely need to install libstdc+±4.9-dev if it’s not working out-of-the-box.