Closed chenj28 closed 11 years ago
Those lines are the least informative of all the output. Please post the 20 lines prior to that output.
make: Entering directory /usr/local/lib/node_modules/oracle/build' CXX(target) Release/obj.target/oracle_bindings/src/connection.o In file included from ../src/connection.cpp:2: ../src/connection.h:10:18: warning: occi.h: No such file or directory ../src/connection.h:11:17: warning: oro.h: No such file or directory In file included from ../src/connection.h:14, from ../src/connection.cpp:2: ../src/executeBaton.h:36: error: ISO C++ forbids declaration of ‘vector’ with no type ../src/executeBaton.h:36: error: invalid use of ‘::’ ../src/executeBaton.h:36: error: expected ‘;’ before ‘<’ token ../src/executeBaton.h:51: error: ISO C++ forbids declaration of ‘vector’ with no type ../src/executeBaton.h:51: error: invalid use of ‘::’ ../src/executeBaton.h:51: error: expected ‘;’ before ‘<’ token ../src/executeBaton.h:52: error: ISO C++ forbids declaration of ‘vector’ with no type ../src/executeBaton.h:52: error: invalid use of ‘::’ ../src/executeBaton.h:52: error: expected ‘;’ before ‘<’ token ../src/executeBaton.h:53: error: ‘oracle’ has not been declared ../src/executeBaton.h:53: error: ISO C++ forbids declaration of ‘Clob’ with no type ../src/executeBaton.h:53: error: expected ‘;’ before ‘clobVal’ ../src/executeBaton.h:54: error: ‘oracle’ has not been declared ../src/executeBaton.h:54: error: ISO C++ forbids declaration of ‘Date’ with no type ../src/executeBaton.h:54: error: expected ‘;’ before ‘dateVal’ ../src/executeBaton.h:55: error: ‘oracle’ has not been declared ../src/executeBaton.h:55: error: ISO C++ forbids declaration of ‘Timestamp’ with no type ../src/executeBaton.h:55: error: expected ‘;’ before ‘timestampVal’ ../src/executeBaton.h:56: error: ‘oracle’ has not been declared ../src/executeBaton.h:56: error: ISO C++ forbids declaration of ‘Number’ with no type ../src/executeBaton.h:56: error: expected ‘;’ before ‘numberVal’ ../src/executeBaton.h:57: error: ‘oracle’ has not been declared ../src/executeBaton.h:57: error: ISO C++ forbids declaration of ‘Blob’ with no type ../src/executeBaton.h:57: error: expected ‘;’ before ‘blobVal’ ../src/executeBaton.h:67: error: ISO C++ forbids declaration of ‘vector’ with no type ../src/executeBaton.h:67: error: invalid use of ‘::’ ../src/executeBaton.h:67: error: expected ‘;’ before ‘<’ token ../src/executeBaton.h:69: error: ISO C++ forbids declaration of ‘vector’ with no type ../src/executeBaton.h:69: error: invalid use of ‘::’ ../src/executeBaton.h:69: error: expected ‘;’ before ‘<’ token ../src/executeBaton.h:70: error: ISO C++ forbids declaration of ‘vector’ with no type ../src/executeBaton.h:70: error: invalid use of ‘::’ ../src/executeBaton.h:70: error: expected ‘;’ before ‘<’ token ../src/executeBaton.h:71: error: ISO C++ forbids declaration of ‘vector’ with no type ../src/executeBaton.h:71: error: invalid use of ‘::’ ../src/executeBaton.h:71: error: expected ‘;’ before ‘<’ token In file included from ../src/connection.cpp:2: ../src/connection.h:42: error: ‘oracle’ has not been declared ../src/connection.h:42: error: expected ‘,’ or ‘...’ before ‘*’ token ../src/connection.h:43: error: ‘oracle’ has not been declared ../src/connection.h:43: error: ISO C++ forbids declaration of ‘Environment’ with no type ../src/connection.h:43: error: expected ‘;’ before ‘*’ token ../src/connection.h:45: error: expected ‘;’ before ‘private’ ../src/connection.h:46: error: ‘oracle’ has not been declared ../src/connection.h:46: error: expected ‘,’ or ‘...’ before ‘*’ token ../src/connection.h:47: error: ‘oracle’ has not been declared ../src/connection.h:47: error: expected ‘,’ or ‘...’ before ‘*’ token ../src/connection.h:48: error: expected ‘;’ before ‘(’ token ../src/connection.h:49: error: ‘std::vector’ has not been declared ../src/connection.h:49: error: expected ‘,’ or ‘...’ before ‘<’ token ../src/connection.h:50: error: ‘std::vector’ has not been declared ../src/connection.h:50: error: expected ‘,’ or ‘...’ before ‘<’ token ../src/connection.h:53: error: ‘oracle’ has not been declared ../src/connection.h:53: error: ISO C++ forbids declaration of ‘Connection’ with no type ../src/connection.h:53: error: expected ‘;’ before ‘*’ token ../src/connection.h:54: error: ‘oracle’ has not been declared ../src/connection.h:54: error: ISO C++ forbids declaration of ‘Environment’ with no type ../src/connection.h:54: error: expected ‘;’ before ‘*’ token In file included from ../src/connection.cpp:6: ../src/outParam.h:22: error: ‘oracle’ has not been declared ../src/outParam.h:22: error: ISO C++ forbids declaration of ‘Date’ with no type ../src/outParam.h:22: error: expected ‘;’ before ‘dateVal’ ../src/outParam.h:23: error: ‘oracle’ has not been declared ../src/outParam.h:23: error: ISO C++ forbids declaration of ‘Timestamp’ with no type ../src/outParam.h:23: error: expected ‘;’ before ‘timestampVal’ ../src/outParam.h:24: error: ‘oracle’ has not been declared ../src/outParam.h:24: error: ISO C++ forbids declaration of ‘Number’ with no type ../src/outParam.h:24: error: expected ‘;’ before ‘numberVal’ ../src/connection.cpp: In constructor ‘Connection::Connection()’: ../src/connection.cpp:42: error: class ‘Connection’ does not have any field named ‘m_connection’ ../src/connection.cpp:42: error: class ‘Connection’ does not have any field named ‘m_environment’ ../src/connection.cpp: In static member function ‘static v8::Handle<v8::Value> Connection::IsConnected(const v8::Arguments&)’: ../src/connection.cpp:91: error: ‘class Connection’ has no member named ‘m_connection’ ../src/connection.cpp: In member function ‘void Connection::closeConnection()’: ../src/connection.cpp:151: error: ‘m_environment’ was not declared in this scope ../src/connection.cpp:151: error: ‘m_connection’ was not declared in this scope ../src/connection.cpp:155: error: expected type-specifier before ‘oracle’ ../src/connection.cpp:155: error: expected ‘)’ before ‘::’ token ../src/connection.cpp:155: error: expected ‘{’ before ‘::’ token ../src/connection.cpp:155: error: ‘::occi’ has not been declared ../src/connection.cpp:155: error: ‘ex’ was not declared in this scope ../src/connection.cpp:155: error: expected ‘;’ before ‘)’ token ../src/connection.cpp: At global scope: ../src/connection.cpp:166: error: ‘int Connection::SetValuesOnStatement’ is not a static member of ‘class Connection’ ../src/connection.cpp:166: error: ‘oracle’ has not been declared ../src/connection.cpp:166: error: ‘stmt’ was not declared in this scope ../src/connection.cpp:166: error: expected primary-expression before ‘&’ token ../src/connection.cpp:166: error: ‘values’ was not declared in this scope ../src/connection.cpp:166: error: initializer expression list treated as compound expression ../src/connection.cpp:166: error: expected ‘,’ or ‘;’ before ‘{’ token make: *** [Release/obj.target/oracle_bindings/src/connection.o] Error 1 make: Leaving directory
/usr/local/lib/node_modules/oracle/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 2.6.32-358.18.1.el6.x86_64
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/oracle
gyp ERR! node -v v0.10.18
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0
Read the instructions at https://github.com/nearinfinity/node-oracle very carefully. You'll need to set up the appropriate environment variables:
If you haven't already, download Oracle instant client.
Then...
export OCI_HOME=
Depending on your OS, you'll also need to create symbolic links before it will build correctly.
@jeffm13 ,yes I did. npm http GET https://registry.npmjs.org/oracle npm http 304 https://registry.npmjs.org/oracle
oracle@0.3.4 install /usr/local/lib/node_modules/oracle node-gyp rebuild
make: Entering directory /usr/local/lib/node_modules/oracle/build' CXX(target) Release/obj.target/oracle_bindings/src/connection.o In file included from /home/j/instantclient_10_2/sdk/include/occi.h:43, from ../src/connection.h:10, from ../src/connection.cpp:2: /home/j/instantclient_10_2/sdk/include/occiData.h:503: warning: type qualifiers ignored on function return type CXX(target) Release/obj.target/oracle_bindings/src/oracle_bindings.o In file included from /home/j/instantclient_10_2/sdk/include/occi.h:43, from ../src/oracle_bindings.h:10, from ../src/oracle_bindings.cpp:2: /home/j/instantclient_10_2/sdk/include/occiData.h:503: warning: type qualifiers ignored on function return type CXX(target) Release/obj.target/oracle_bindings/src/executeBaton.o In file included from /home/j/instantclient_10_2/sdk/include/occi.h:43, from ../src/executeBaton.h:12, from ../src/executeBaton.cpp:2: /home/j/instantclient_10_2/sdk/include/occiData.h:503: warning: type qualifiers ignored on function return type CXX(target) Release/obj.target/oracle_bindings/src/outParam.o In file included from /home/j/instantclient_10_2/sdk/include/occi.h:43, from ../src/outParam.h:11, from ../src/outParam.cpp:2: /home/j/instantclient_10_2/sdk/include/occiData.h:503: warning: type qualifiers ignored on function return type SOLINK_MODULE(target) Release/obj.target/oracle_bindings.node /usr/bin/ld: skipping incompatible /home/j/instantclient_10_2/libocci.so when searching for -locci /usr/bin/ld: cannot find -locci collect2: ld returned 1 exit status make: *** [Release/obj.target/oracle_bindings.node] Error 1 make: Leaving directory
/usr/local/lib/node_modules/oracle/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 2.6.32-358.18.1.el6.x86_64
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/oracle
gyp ERR! node -v v0.10.18
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
npm ERR! weird error 1
gyp ERR! build error gyp ERR! stack Error:
make
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12) gyp ERR! System Linux 2.6.32-358.18.1.el6.x86_64 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/oracle gyp ERR! node -v v0.10.18 gyp ERR! node-gyp -v v0.10.9 gyp ERR! not ok npm ERR! weird error 1 npm ERR! not ok code 0