npm install error
I am receiving the following when attempting to install oracle via NPM. Any ideas?
ubuntu@ubuntu-VirtualBox:~/octest2$ sudo npm install oracle [sudo] password for ubuntu:
[email protected] install /home/ubuntu/octest2/node_modules/oracle node-gyp rebuild
make: Entering directory /home/ubuntu/octest2/node_modules/oracle/build' CXX(target) Release/obj.target/oracle_bindings/src/connection.o In file included from ../src/connection.cpp:2:0: ../src/connection.h:11:18: fatal error: occi.h: No such file or directory compilation terminated. make: *** [Release/obj.target/oracle_bindings/src/connection.o] Error 1 make: Leaving directory/home/ubuntu/octest2/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:809:12)
gyp ERR! System Linux 3.11.0-15-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/octest2/node_modules/oracle
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.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.11.0-15-generic npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "oracle" npm ERR! cwd /home/ubuntu/octest2 npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/ubuntu/octest2/npm-debug.log npm ERR! not ok code 0
Most likely one of two issues: 1 - one of your exports is incorrect. Run the pre_install_check.sh after downloading from GIT manually. It will tell you what is incorrect. 2 - you did not download the SDK for the Oracle client. There is a basic package which doesn't include the SDK. The SDK contains the occi.h in an includes folder. Make sure you have the SDK inside the instantclient folder.
Dmitry,
Thank you for taking the time to respond to my issue.
- I receive the "everything looks dandy" message when running the pre install check.
ubuntu@ubuntu-VirtualBox:~/node-oracle$ source ./pre_install_check.sh /home/ubuntu/instantclient_11_2/ everythings looks dandy OCI_HOME: /home/ubuntu/instantclient_11_2/ OCI_LIB_DIR: /home/ubuntu/instantclient_11_2/ OCI_INCLUDE_DIR: /home/ubuntu/instantclient_11_2/sdk/include/
- I believe I have downloaded both the instant client and SDK
ubuntu@ubuntu-VirtualBox:~/instantclient_11_2/sdk/include$ ls ldap.h occiControl.h oci8dp.h ocidfn.h ocixstream.h orl.h nzerror.h occiData.h ociap.h ociextp.h odci.h oro.h nzt.h occi.h ociapr.h oci.h oratypes.h ort.h occiAQ.h occiObjects.h ocidef.h ocikpr.h orid.h xa.h occiCommon.h oci1.h ocidem.h ocixmldb.h ori.h
ubuntu@ubuntu-VirtualBox:~/node-oracle$ source ./pre_install_check.sh /home/ubuntu/instantclient_11_2/ everythings looks dandy OCI_HOME: /home/ubuntu/instantclient_11_2/ OCI_LIB_DIR: /home/ubuntu/instantclient_11_2/ OCI_INCLUDE_DIR: /home/ubuntu/instantclient_11_2/sdk/include/
ubuntu@ubuntu-VirtualBox:~/instantclient_11_2/sdk/include$ ls ldap.h occiControl.h oci8dp.h ocidfn.h ocixstream.h orl.h nzerror.h occiData.h ociap.h ociextp.h odci.h oro.h nzt.h occi.h ociapr.h oci.h oratypes.h ort.h occiAQ.h occiObjects.h ocidef.h ocikpr.h orid.h xa.h occiCommon.h oci1.h ocidem.h ocixmldb.h ori.h
Am I missing something?
Thanks again, I really appreciate the assistance.
Best Regards,
Shaun
From: Dmitry Erman [email protected] To: joeferner/node-oracle [email protected] Cc: S.Polley [email protected] Sent: Thursday, August 7, 2014 3:31 PM Subject: Re: [node-oracle] npm install error (#205)
Most likely one of two issues: 1 - one of your exports is incorrect. Run the pre_install_check.sh after downloading from GIT manually. It will tell you what is incorrect. 2 - you did not download the SDK for the Oracle client. There is a basic package which doesn't include the SDK. The SDK contains the occi.h in an includes folder. Make sure you have the SDK inside the instantclient folder. — Reply to this email directly or view it on GitHub.
You do a sudo!
That may change your environment.
Please try without
This is the output when running npm install withouth sudo
ubuntu@ubuntu-VirtualBox:~/node-oracle$ npm install
[email protected] install /home/ubuntu/node-oracle node-gyp rebuild
gyp ERR! clean error gyp ERR! stack Error: EACCES, unlink 'build/Makefile' gyp ERR! System Linux 3.11.0-15-generic gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/ubuntu/node-oracle gyp ERR! node -v v0.10.29 gyp ERR! node-gyp -v v0.13.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.11.0-15-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/ubuntu/node-oracle
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ubuntu/node-oracle/npm-debug.log
npm ERR! not ok code 0
Probably caused because you prrviously used sudo:
gyp ERR! stack Error: EACCES, unlink 'build/Makefile'
"Mr. Duffy lived a short distance from his body"
On 08.08.2014, at 18:02, "S.Polley" [email protected] wrote:
This is the output when running npm install withouth sudo
ubuntu@ubuntu-VirtualBox:~/node-oracle$ npm install
[email protected] install /home/ubuntu/node-oracle node-gyp rebuild
gyp ERR! clean error gyp ERR! stack Error: EACCES, unlink 'build/Makefile' gyp ERR! System Linux 3.11.0-15-generic gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/ubuntu/node-oracle gyp ERR! node -v v0.10.29 gyp ERR! node-gyp -v v0.13.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.11.0-15-generic npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" npm ERR! cwd /home/ubuntu/node-oracle npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/ubuntu/node-oracle/npm-debug.log npm ERR! not ok code 0
— Reply to this email directly or view it on GitHub https://github.com/joeferner/node-oracle/issues/205#issuecomment-51621362.
I try to install oracle from windows 7 32bit . I have successfully installed "Instant Client Package" (Basic and SDK) and created environment variables. But had:
C:\Users\Dub>npm install oracle \
[email protected] install C:\Users\Dub\node_modules\oracle node-gyp rebuild
C:\Users\Dub\node_modules\oracle>node "C:\Program Files\nodejs\node_modules\npm
bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:64:11
gyp ERR! stack at Object.oncomplete (evalmachine.
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
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! Please include the following file with any support request: npm ERR! C:\Users\Dub\npm-debug.log
@ZenWindrunner read the output carefully:
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
Windows 7 Python 2.7
I have set the environment variables and include the instant client files in my path but I am still receiving this error:
Hey guys ,I got the same error on centos 6.7:
- system 6.7
- gcc 4.8
- python 2.7
- node 6.3

Could you give me some guid? Thank you first.