npm install oracle fails
npm install oracle fails
npm --version 1.4.9 node --version v0.10.28 Windows 7 .NET 4.0 InstantClient 12.1
gyp ERR! build error
gyp ERR! stack Error: <somePath>\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (<somePath>\nodejs\node_modules\npm\node_modules\node-gyp\lib\buil
d.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:807:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "<somePath>\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "
rebuild"
gyp ERR! cwd <otherPath>\test1\node_modules\oracle
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the oracle package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls oracle
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "<other1Path>\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin
\npm-cli.js" "install" "oracle"
npm ERR! cwd <otherPath>\test1
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! <otherPath>\npm-debug.log
npm ERR! not ok code 0
Hi,
I have a similar one, running under vagrant, windows 7:
vagrant@precise32:/vagrant/nodeJs/oracleconnect/node_modules/oracle$ npm install
[email protected] install /vagrant/nodeJs/oracleconnect/node_modules/oracle node-gyp rebuild
make: Entering directory /vagrant/nodeJs/oracleconnect/node_modules/oracle/build' CXX(target) Release/obj.target/oracle_bindings/src/connection.o CXX(target) Release/obj.target/oracle_bindings/src/oracle_bindings.o CXX(target) Release/obj.target/oracle_bindings/src/executeBaton.o CXX(target) Release/obj.target/oracle_bindings/src/reader.o CXX(target) Release/obj.target/oracle_bindings/src/statement.o CXX(target) Release/obj.target/oracle_bindings/src/outParam.o SOLINK_MODULE(target) Release/obj.target/oracle_bindings.node /usr/bin/ld: skipping incompatible /opt/instantclient_11_2/libocci.so when searching for -locci /usr/bin/ld: cannot find -locci /usr/bin/ld: skipping incompatible /opt/instantclient_11_2/libclntsh.so when searching for -lclntsh /usr/bin/ld: cannot find -lclntsh /usr/bin/ld: skipping incompatible /opt/instantclient_11_2/libnnz11.so when searching for -lnnz11 /usr/bin/ld: cannot find -lnnz11 collect2: ld returned 1 exit status make: *** [Release/obj.target/oracle_bindings.node] Error 1 make: Leaving directory/vagrant/nodeJs/oracleconnect/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/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Linux 3.2.0-23-generic-pae
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /vagrant/nodeJs/oracleconnect/node_modules/oracle
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the oracle package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls oracle
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.2.0-23-generic-pae
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant/nodeJs/oracleconnect/node_modules/oracle
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /vagrant/nodeJs/oracleconnect/node_modules/oracle/npm-debug.log
npm ERR! not ok code 0
@AYAXGVLVI5 Make sure you have set OCI_VERSION=12 if you are using version 12.x of the Oracle Instant Client (it appears that you are based on the output of "skipping incompatible" from files in /opt/instantclient_11_2/).
@raztus Thanks. The problem was not the 12 version but that I am using a virtual machine with vagrant and precise32 under a 64 bit windows machine and the downloaded oracle drivers were for 64bit and the "compatible" ones were for 32bit of the VM. Hope this helps someone else.
Now it installed correctly. I had another error: Error: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor. which was only the database name wrong. Finally had to use instantclient 11_1 as I'm connecting to oracle 9, now it seems to work fine. Thanks very much for your help.