You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~$ node
> var git = require("nodegit")
Error: Cannot find module '../build/Debug/nodegit'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (node_modules/nodegit/lib/nodegit.js:12:12)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
After installing from the repository, I got cc1plus: error: unrecognized command line option ‘-std=c++11’, which lead me to upgrade to gcc 4.8. Nodegit now works fine.
I think we have a note for that already. The problem here was originally libc or libstdc++ being out-of-date though. We need to document that in a way that isn't super confusing and easy to check.
Activity
dennari commentedon Mar 17, 2015
After installing from the repository, I got
cc1plus: error: unrecognized command line option ‘-std=c++11’, which lead me to upgrade to gcc 4.8. Nodegit now works fine.johnhaley81 commentedon Mar 17, 2015
Did you recompile nodegit using gcc or did you just upgrade and then it worked?
dennari commentedon Mar 17, 2015
I recompiled using gcc
maxkorp commentedon Mar 18, 2015
Yeah, IIRC GCC 4.6 and below don't support
-std=c++11I'll make sure theres a note in the readme.
tbranyen commentedon Mar 18, 2015
I think we have a note for that already. The problem here was originally libc or libstdc++ being out-of-date though. We need to document that in a way that isn't super confusing and easy to check.
Edit: accuracy with words
maxkorp commentedon Mar 18, 2015
Hrm, it seems like the build instructions are gone entirely, at least from the readme O.o
tbranyen commentedon Mar 18, 2015
They exist in the install from source guide: http://www.nodegit.org/guides/install/from-source/