Skip to content
This repository was archived by the owner on Dec 2, 2026. It is now read-only.
This repository was archived by the owner on Dec 2, 2026. It is now read-only.

cannot npm install nodegit with gcc-4.8.5 #1096

Closed

Description

@leileichrist

My gcc-version is 4.8.5 but during installation I got the following error:

Error: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/app/node_modules/nodegit/build/Release/nodegit.node)
    at Error (native)
    at Object.Module._extensions..node (module.js:434:18)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/app/node_modules/nodegit/dist/nodegit.js:11:12)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
]
  killed: false,
  code: 1,
  signal: null,
  cmd: '/bin/sh -c node /home/app/node_modules/nodegit/dist/nodegit.js' }


It looks like there is no GLIBCXX_3.4.20 in gcc4.8. Wouldn't nodegit support gcc4.7+ ? How do I configure my gcc to make it include GLIBCXX_3.4.20 ?

Activity

  1. tbranyen commented on Aug 1, 2016

    @tbranyen
    Member

    You're missing the libstdc++-dev dependency mentioned in the README.

  2. leileichrist commented on Aug 2, 2016

    @leileichrist
    Author

    Since the docs are targeted for Ubuntu whereas I'm using Centos (centos-release-6-8.el6.centos.12.3.x86_64) and a libstdc++-dev does not seem to be available in centos's domain. Do you have ideas how I can upgrade my libstdc++.so.6 to include the GLIBCXX_3.4.20 version ?

  3. tbranyen commented on Aug 2, 2016

    @tbranyen
    Member

    Urgh, I wish! CentOS is something I have very limited experience with. I'd search for whatever provides libstdc++ headers in the package manager, should be a relatively easy issue to Google I'd hope. Sorry I closed the issue so quickly, but we can discuss this issue better in realtime with Gitter. If we figure something out, I'd definitely be okay with updating the README to contain instructions for Cent OS.

  4. leileichrist commented on Aug 3, 2016

    @leileichrist
    Author

    ok so the solution is to install gcc-4.9

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