| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Did you try building 0.17.0 instead of 0.16.0?
Hey, thanks, like a fool I had not tried that. However, it still does not work, though it does give me a different error this time:
[root@ip-10-244-134-204 mpower-build]# BUILD_ONLY=true npm install nodegit@0.17.0 > nodegit@0.17.0 install /updates/mpower-build/node_modules/nodegit > node lifecycleScripts/preinstall && node lifecycleScripts/install [nodegit] Running pre-install script [nodegit] Configuring libssh2. [nodegit] Running install script [nodegit] Pre-built download disabled, building from source. make: Entering directory `/updates/mpower-build/node_modules/nodegit/build' CC(target) Release/obj.target/libgit2/vendor/libgit2/src/annotated_commit.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/apply.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/attr_file.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/attr.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/attrcache.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/blame_git.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/blame.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/blob.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/branch.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/buf_text.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/buffer.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/cache.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/checkout.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/cherrypick.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/clone.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/commit_list.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/commit.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/config_cache.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/config_file.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/config.o CC(target) Release/obj.target/libgit2/vendor/libgit2/src/curl_stream.o ../vendor/libgit2/src/curl_stream.c:30: error: expected specifier-qualifier-list before âCURLâ ../vendor/libgit2/src/curl_stream.c: In function âseterr_curlâ: ../vendor/libgit2/src/curl_stream.c:41: error: âcurl_streamâ has no member named âcurl_errorâ ../vendor/libgit2/src/curl_stream.c: In function âapply_proxy_credsâ: ../vendor/libgit2/src/curl_stream.c:53: error: âCURLcodeâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:53: error: (Each undeclared identifier is reported only once ../vendor/libgit2/src/curl_stream.c:53: error: for each function it appears in.) ../vendor/libgit2/src/curl_stream.c:53: error: expected â;â before âresâ ../vendor/libgit2/src/curl_stream.c:57: error: âcurl_streamâ has no member named âproxy_credâ ../vendor/libgit2/src/curl_stream.c:60: error: âcurl_streamâ has no member named âproxy_credâ ../vendor/libgit2/src/curl_stream.c:61: error: âresâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:61: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c:61: error: âCURLOPT_PROXYUSERNAMEâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:61: error: âCURLE_OKâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:63: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c:63: error: âCURLOPT_PROXYPASSWORDâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:66: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c:66: error: âCURLINFO_PROXYAUTH_AVAILâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:68: error: âCURLAUTH_NTLMâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:69: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c:69: error: âCURLOPT_PROXYAUTHâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:71: error: âCURLAUTH_DIGESTâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:72: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c:74: error: âCURLAUTH_BASICâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:75: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c: In function âask_and_apply_proxy_credsâ: ../vendor/libgit2/src/curl_stream.c:85: error: âcurl_streamâ has no member named âproxyâ ../vendor/libgit2/src/curl_stream.c:91: error: âcurl_streamâ has no member named âproxy_credâ ../vendor/libgit2/src/curl_stream.c:92: error: âcurl_streamâ has no member named âproxy_credâ ../vendor/libgit2/src/curl_stream.c:94: error: âcurl_streamâ has no member named âproxy_credâ ../vendor/libgit2/src/curl_stream.c:103: error: âcurl_streamâ has no member named âproxy_credâ ../vendor/libgit2/src/curl_stream.c: In function âcurls_connectâ: ../vendor/libgit2/src/curl_stream.c:118: error: âCURLcodeâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:118: error: expected â;â before âresâ ../vendor/libgit2/src/curl_stream.c:127: error: âresâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:127: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c:129: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c:129: error: âCURLINFO_HTTP_CONNECTCODEâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:140: error: âCURLE_OKâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:140: error: âCURLE_PEER_FAILED_VERIFICATIONâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:145: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c:145: error: âCURLINFO_LASTSOCKETâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:154: error: âcurl_streamâ has no member named âsocketâ ../vendor/libgit2/src/curl_stream.c: In function âcurls_certificateâ: ../vendor/libgit2/src/curl_stream.c:165: error: âCURLcodeâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:165: error: expected â;â before âresâ ../vendor/libgit2/src/curl_stream.c:171: error: âresâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:171: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c:171: error: âCURLINFO_CERTINFOâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:171: error: âCURLE_OKâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:175: error: dereferencing pointer to incomplete type ../vendor/libgit2/src/curl_stream.c:176: error: âcurl_streamâ has no member named âcert_infoâ ../vendor/libgit2/src/curl_stream.c:177: error: âcurl_streamâ has no member named âcert_infoâ ../vendor/libgit2/src/curl_stream.c:178: error: âcurl_streamâ has no member named âcert_infoâ ../vendor/libgit2/src/curl_stream.c:185: error: dereferencing pointer to incomplete type ../vendor/libgit2/src/curl_stream.c:185: error: dereferencing pointer to incomplete type ../vendor/libgit2/src/curl_stream.c:186: error: dereferencing pointer to incomplete type ../vendor/libgit2/src/curl_stream.c:192: error: âcurl_streamâ has no member named âcert_info_stringsâ ../vendor/libgit2/src/curl_stream.c:193: error: âcurl_streamâ has no member named âcert_info_stringsâ ../vendor/libgit2/src/curl_stream.c:195: error: âcurl_streamâ has no member named âcert_infoâ ../vendor/libgit2/src/curl_stream.c:196: error: âcurl_streamâ has no member named âcert_infoâ ../vendor/libgit2/src/curl_stream.c:196: error: âcurl_streamâ has no member named âcert_info_stringsâ ../vendor/libgit2/src/curl_stream.c:197: error: âcurl_streamâ has no member named âcert_infoâ ../vendor/libgit2/src/curl_stream.c:199: error: âcurl_streamâ has no member named âcert_infoâ ../vendor/libgit2/src/curl_stream.c: In function âcurls_set_proxyâ: ../vendor/libgit2/src/curl_stream.c:207: error: âCURLcodeâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:207: error: expected â;â before âresâ ../vendor/libgit2/src/curl_stream.c:210: error: âcurl_streamâ has no member named âproxyâ ../vendor/libgit2/src/curl_stream.c:213: error: âresâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:213: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c:213: error: âCURLOPT_PROXYâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:213: error: âcurl_streamâ has no member named âproxyâ ../vendor/libgit2/src/curl_stream.c:213: error: âCURLE_OKâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:216: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c:216: error: âCURLOPT_PROXYAUTHâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:216: error: âCURLAUTH_ANYâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c: At top level: ../vendor/libgit2/src/curl_stream.c:222: error: expected â)â before âfdâ ../vendor/libgit2/src/curl_stream.c: In function âcurls_writeâ: ../vendor/libgit2/src/curl_stream.c:250: error: âCURLcodeâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:250: error: expected â;â before âresâ ../vendor/libgit2/src/curl_stream.c:256: error: âcurl_streamâ has no member named âsocketâ ../vendor/libgit2/src/curl_stream.c:259: error: âresâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:259: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c:260: error: âCURLE_OKâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:262: error: âCURLE_AGAINâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c: In function âcurls_readâ: ../vendor/libgit2/src/curl_stream.c:274: error: âCURLcodeâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:274: error: expected â;â before âresâ ../vendor/libgit2/src/curl_stream.c:278: error: âcurl_streamâ has no member named âsocketâ ../vendor/libgit2/src/curl_stream.c:281: error: âresâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:281: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c:282: error: âCURLE_AGAINâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:284: error: âCURLE_OKâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c: In function âcurls_closeâ: ../vendor/libgit2/src/curl_stream.c:294: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c:297: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c:298: error: âcurl_streamâ has no member named âhandleâ ../vendor/libgit2/src/curl_stream.c:299: error: âcurl_streamâ has no member named âsocketâ ../vendor/libgit2/src/curl_stream.c: In function âcurls_freeâ: ../vendor/libgit2/src/curl_stream.c:309: error: âcurl_streamâ has no member named âcert_info_stringsâ ../vendor/libgit2/src/curl_stream.c: In function âgit_curl_stream_newâ: ../vendor/libgit2/src/curl_stream.c:316: error: âCURLâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:316: error: âhandleâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:334: error: âCURLOPT_URLâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:335: error: âCURLOPT_ERRORBUFFERâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:335: error: âcurl_streamâ has no member named âcurl_errorâ ../vendor/libgit2/src/curl_stream.c:336: error: âCURLOPT_PORTâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:337: error: âCURLOPT_CONNECT_ONLYâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:338: error: âCURLOPT_SSL_VERIFYPEERâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:339: error: âCURLOPT_CERTINFOâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:340: error: âCURLOPT_HTTPPROXYTUNNELâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:341: error: âCURLOPT_PROXYAUTHâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:341: error: âCURLAUTH_ANYâ undeclared (first use in this function) ../vendor/libgit2/src/curl_stream.c:355: error: âcurl_streamâ has no member named âhandleâ make: *** [Release/obj.target/libgit2/vendor/libgit2/src/curl_stream.o] Error 1 make: Leaving directory `/updates/mpower-build/node_modules/nodegit/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/updates/mpower-build/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System Linux 2.6.32-279.22.1.el6.x86_64 gyp ERR! command "/usr/bin/node" "/updates/mpower-build/node_modules/node-gyp/bin/node-gyp.js" "build" "--build-from-source" "--module=/updates/mpower-build/node_modules/nodegit/build/Release/nodegit.node" "--module_name=nodegit" "--module_path=/updates/mpower-build/node_modules/nodegit/build/Release" gyp ERR! cwd /updates/mpower-build/node_modules/nodegit gyp ERR! node -v v6.10.0 gyp ERR! node-gyp -v v3.5.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /updates/mpower-build/node_modules/node-gyp/bin/node-gyp.js build --build-from-source --module=/updates/mpower-build/node_modules/nodegit/build/Release/nodegit.node --module_name=nodegit --module_path=/updates/mpower-build/node_modules/nodegit/build/Release' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/updates/mpower-build/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:106:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) node-pre-gyp ERR! System Linux 2.6.32-279.22.1.el6.x86_64 node-pre-gyp ERR! command "/usr/bin/node" "/updates/mpower-build/node_modules/.bin/node-pre-gyp" "install" "--build-from-source" node-pre-gyp ERR! cwd /updates/mpower-build/node_modules/nodegit node-pre-gyp ERR! node -v v6.10.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.33 node-pre-gyp ERR! not ok Failed to execute '/usr/bin/node /updates/mpower-build/node_modules/node-gyp/bin/node-gyp.js build --build-from-source --module=/updates/mpower-build/node_modules/nodegit/build/Release/nodegit.node --module_name=nodegit --module_path=/updates/mpower-build/node_modules/nodegit/build/Release' (1) [nodegit] ERROR - Could not finish install [nodegit] ERROR - finished with error code: 1 npm WARN mpower-build@1.0.0 No repository field. npm ERR! Linux 2.6.32-279.22.1.el6.x86_64 npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "nodegit@0.17.0" npm ERR! node v6.10.0 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! nodegit@0.17.0 install: `node lifecycleScripts/preinstall && node lifecycleScripts/install` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the nodegit@0.17.0 install script 'node lifecycleScripts/preinstall && node lifecycleScripts/install'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the nodegit package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node lifecycleScripts/preinstall && node lifecycleScripts/install npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs nodegit npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls nodegit npm ERR! There is likely additional logging output above.
Thanks!
Your gcc must be ancient, which version are you on? Can you try something with a decent C++11 support or maybe clang? Use CC and CXX environment variables to point to your newer compiler.
Unfortunately, I am not a CentOS guy at all, and originally wrote my node script for Windows, but my boss told me over the weekend we need to deploy it on our AWS instance, which runs CentOS, so most of what you said does not mean anything to me. Sorry. However, running yum check gcc shows the following:
Installed Packages gcc.x86_64 4.4.7-17.el6 @base
I assume this is too old but there are no updates available. I am willing to try anything, however I am not sure based on your comments what to look at next. I would appreciate any clarification or steps you could provide to try out. Thank you!
Are you able to clone and build libgit2 itself? It's written in C89 so I feel like the compiler shouldn't be the problem here...
Yes, I am able to clone the libgit2 repo and then use cmake to build it by following these instructions:
https://github.com/libgit2/libgit2#building-libgit2---using-cmake
The build finishes like so:
[100%] Building C object CMakeFiles/libgit2_clar.dir/deps/http-parser/http_parser.c.o Linking C executable libgit2_clar [100%] Built target libgit2_clar
@rcjsuen Correct me somebody if I'm wrong, but IIRC node-gyp requires C++11 support as of whatever is bundled with node 6 I think (maybe it was 4? I think 6)
I wasn't able to easily find the answer about node-gyp that @maxkorp posed.
However, what I found was that we have std=c++0x defined in our binding.gyp file.
GCC 4.4.x has experimental support of this -std=c++0x compiler flag. Of course, that's not to say that it should or shouldn't work. It's not clear to me if the stuff we use are features covered by 4.4.x or not.
GCC 4.8.1 is the first feature-complete implementation of the standard and the functionality is enabled via the -std=c++11 flag.
And lastly, our installation instructions asks for GCC 4.7+.
@bduff9 Maybe you can try installing a newer compiler into /opt or something?
The compiler flag in binding.gyp was added for PR #836 and at some point in the life of that PR it compiled "...on gcc 4.6 and clang 3.4".
I am encountering the same issue on RHEL6
| Back | FazBrowse Home | New Git URL |
I am trying to install nodegit on a CentOS box and I was getting the error about libstdc++-dev, as seen in #853. I then tried the command listed in there as working for CentOS:
BUILD_ONLY=true npm install nodegit
This fails with many more errors from openssl, which I then updated to the latest version. The output looks like:
I did see #1171, however as can be seen from the log above, I am using node v6 not v7. I would appreciate any help as I need to get this script deployed. Thank you in advance!