FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Cannot install nodegit on linux machines (e.g. travis builds) · Issue #853 · nodegit/nodegit · GitHub

Repository navigation

Cannot install nodegit on linux machines (e.g. travis builds) #853

Description

/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)

Activity

  1. runspired commented on Jan 6, 2016

    Author

    Probably a duplicate: #758 (comment)

  2. runspired commented on Jan 6, 2016

    Author

    An incorrectly closed PR which assumed this issue was no longer present: #744

  3. tbranyen commented on Jan 6, 2016

    Member

    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
  4. runspired commented on Jan 6, 2016

    Author

    I was able to get the project directly consuming it to build (both with and without master) by following the travis-addon instructions in the above PR.

    However, setting the dependency to master results in failed builds for projects consuming another project which has nodegit as a dependency.

    See: https://travis-ci.org/runspired/ember-hammertime/jobs/100523335

  5. johnhaley81 commented on Jan 6, 2016

    Collaborator

    You're getting a node-gyp error because that build is still using old gcc.

    We might need to make gcc 4.9+ a requirement for nan anyways since for node versions 4+

  6. runspired commented on Jan 6, 2016

    Author

    @johnhaley81 I did, I can make Travis pass for that repo (and that repo only) with each test scenario taking an additional 6-10minutes to run :'(

    But a secondary issue arises when that repo is a dependency of another project. It's code will never be executed on Travis, but nodegit must be a dependency. This results in consuming projects also needing to configure Travis specially for a dependency that's unneeded during testing, with ridiculous build times if you do.

  7. amackera commented on Jan 12, 2016

    I'm also seeing this error trying to run a project using nodegit in Elastic Beanstalk.

  8. thinkingmedia commented on Jan 13, 2016

    I can confirm this is still an issue with 0.7.0 build.

  9. tbranyen commented on Jan 13, 2016

    Member

    @runspired if you setup your travis env to use the latest gcc 4.9, you shouldn't have to compile anything to make this work and your builds should take hardly any longer.

  10. tbranyen commented on Jan 15, 2016

    Member

    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:

    sudo add-apt-repository ppa:ubuntu-toolchain-r/test
    sudo apt-get update
    sudo apt-get install libstdc++-4.9-dev

    Pre install libstdc++-4.9-dev linked libraries:

    λ ldd node_modules/nodegit/build/Release/nodegit.node
    node_modules/nodegit/build/Release/nodegit.node: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node_modules/nodegit/build/Release/nodegit.node)
        linux-vdso.so.1 =>  (0x00007fffdabd5000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f7309f02000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f7309cec000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7309ace000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7309709000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7309403000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f730ad03000)

    Post install libstdc++-4.9-dev linked libraries:

    λ ldd node_modules/nodegit/build/Release/nodegit.node 
        linux-vdso.so.1 =>  (0x00007ffe26c6a000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f4d5b9ea000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f4d5b7cc000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4d5b407000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4d5b101000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f4d5c46a000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f4d5aeeb000)

    So yes, you'll definitely need to install libstdc++-4.9-dev if it's not working out-of-the-box.

  11. tbranyen commented on Jan 15, 2016

    Member

    You can do this in Travis-CI by adding the following to your .travis.yml file:

    addons:
      apt:
        sources:
          - ubuntu-toolchain-r-test
        packages:
          - libstdc++-4.9-dev
  12. hridyeshpant commented on May 17, 2016

    we are also hitting same issue

    Error: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /data/jenkins/workspace/master/node_modules/nodegit/build/Release/nodegit.node)

    Is there any solution for centos-release-6-7 OS?

  13. semos commented on May 31, 2016

    @hridyeshpant any solutions on this ?

  14. mikalai-s commented on Oct 17, 2016

    Is there any solution for centos-release-6-7 OS?

    BUILD_ONLY=true npm install nodegit solved the problem for me on centos7. Thanks to #853 (comment)

  15. heath-guidewire commented on Apr 21, 2017

    Is BUILD_ONLY=true npm install nodegit the same as npm install nodegit --build-from-source?

  16. maxkorp commented on Apr 21, 2017

    Collaborator

    Not quite, there is a bit more to it that we do with BUILD_ONLY set to true

  17. ChalangRasul commented on May 2, 2017

    So what's the solution for this? I'm trying to run a project on elasticbeanstalk and it's failing with the same issues.

  18. tbranyen commented on May 2, 2017

    Member

    @chalangr12 solution for what? We can't build for every single architecture unfortunately, only popular ones. Can you try and suss out what dependency is causing your failure? Is it glibc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL