I can not install Nodegit on the OpenShift Node.js 0.10 Cartridge. The installation fails when compiling. This is the whole error message:
npm install nodegit
\
nodegit@0.4.1 install /var/lib/openshift/**/app-root/runtime/repo/node_modules/nodegit
node lifecycleScripts/install
[nodegit] Fetching binary from S3.
[nodegit] Failed to install prebuilt binary, building manually.
[nodegit] Making sure dependencies are available and native code is generated
[nodegit] Everything is ready to go, attempting compilation
[nodegit] Building native node module.
{ [Error: Command failed: ../vendor/libssh2/src/openssl.c: In function '_libssh2_pub_priv_keyfile':
../vendor/libssh2/src/openssl.c:767: warning: value computed is not used
../vendor/libssh2/src/transport.c: In function '_libssh2_transport_send':
../vendor/libssh2/src/transport.c:716: warning: suggest braces around empty body in an 'if' statement
cc1plus: error: unrecognized command line option "-std=c++11"
make: *** [Release/obj.target/nodegit/src/nodegit.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/var/lib/openshift/55fbcbad0c1e66ad96000042/app-root/runtime/repo/node_modules/nodegit/node_modules/pangyp/lib/build.js:272:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 2.6.32-504.34.1.el6.x86_64
gyp ERR! command "node" "/var/lib/openshift/55fbcbad0c1e66ad96000042/app-root/runtime/repo/node_modules/nodegit/node_modules/.bin/pangyp" "rebuild"
gyp ERR! cwd /var/lib/openshift/55fbcbad0c1e66ad96000042/app-root/runtime/repo/node_modules/nodegit
gyp ERR! node -v v0.10.35
gyp ERR! pangyp -v v2.3.2
gyp ERR! not ok
] killed: false, code: 1, signal: null }
undefined
nodegit@0.4.1 node_modules/nodegit
├── promisify-node@0.1.5 (nodegit-promise@1.0.2)
├── which-native-nodish@1.1.3 (find-parent-dir@0.3.0, nodegit-promise@1.0.2)
├── nodegit-promise@2.0.1 (asap@2.0.3)
├── fs-extra@0.18.4 (jsonfile@2.2.2, graceful-fs@3.0.8, rimraf@2.4.3)
└── npm@2.14.5
gcc --version gives the following output:
gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I know this is too old... Could you please provide a prebuild binary to solve this problem?
This is the system:
uname -a
Linux ex-std-node688.prod.rhcloud.com 2.6.32-504.34.1.el6.x86_64 #1 SMP Mon Jul 27 15:03:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
If you need any further information about the system please ask.
I can not install Nodegit on the OpenShift Node.js 0.10 Cartridge. The installation fails when compiling. This is the whole error message:
npm install nodegit
\
[nodegit] Fetching binary from S3.
[nodegit] Failed to install prebuilt binary, building manually.
[nodegit] Making sure dependencies are available and native code is generated
[nodegit] Everything is ready to go, attempting compilation
[nodegit] Building native node module.
{ [Error: Command failed: ../vendor/libssh2/src/openssl.c: In function '_libssh2_pub_priv_keyfile':
../vendor/libssh2/src/openssl.c:767: warning: value computed is not used
../vendor/libssh2/src/transport.c: In function '_libssh2_transport_send':
../vendor/libssh2/src/transport.c:716: warning: suggest braces around empty body in an 'if' statement
cc1plus: error: unrecognized command line option "-std=c++11"
make: *** [Release/obj.target/nodegit/src/nodegit.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/var/lib/openshift/55fbcbad0c1e66ad96000042/app-root/runtime/repo/node_modules/nodegit/node_modules/pangyp/lib/build.js:272:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 2.6.32-504.34.1.el6.x86_64
gyp ERR! command "node" "/var/lib/openshift/55fbcbad0c1e66ad96000042/app-root/runtime/repo/node_modules/nodegit/node_modules/.bin/pangyp" "rebuild"
gyp ERR! cwd /var/lib/openshift/55fbcbad0c1e66ad96000042/app-root/runtime/repo/node_modules/nodegit
gyp ERR! node -v v0.10.35
gyp ERR! pangyp -v v2.3.2
gyp ERR! not ok
] killed: false, code: 1, signal: null }
undefined
nodegit@0.4.1 node_modules/nodegit
├── promisify-node@0.1.5 (nodegit-promise@1.0.2)
├── which-native-nodish@1.1.3 (find-parent-dir@0.3.0, nodegit-promise@1.0.2)
├── nodegit-promise@2.0.1 (asap@2.0.3)
├── fs-extra@0.18.4 (jsonfile@2.2.2, graceful-fs@3.0.8, rimraf@2.4.3)
└── npm@2.14.5
gcc --version gives the following output:
gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I know this is too old... Could you please provide a prebuild binary to solve this problem?
This is the system:
uname -a
Linux ex-std-node688.prod.rhcloud.com 2.6.32-504.34.1.el6.x86_64 #1 SMP Mon Jul 27 15:03:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
If you need any further information about the system please ask.