0

While I try to install db-oracle for node js in Terminal of mac OS. Getting the below error. Please help.

The error list I get is as follows on npm install db-oracle

unameits-Mac-mini:InstantClient vinod$ npm install db-oracle npm http GET https://registry.npmjs.org/db-oracle npm http 304 https://registry.npmjs.org/db-oracle

[email protected] install /usr/InstantClient/node_modules/db-oracle node-waf configure build

Checking for program g++ or c++ : /usr/bin/g++

Checking for program cpp : /usr/bin/cpp

Checking for program ar : /usr/bin/ar

Checking for program ranlib : /usr/bin/ranlib

Checking for g++ : ok

Checking for node path : not found

Checking for node prefix : ok /usr/local/Cellar/node/0.8.11

Checking for header occi.h : Missing include files for OCI

/usr/InstantClient/node_modules/db-oracle/wscript:42: error: the configuration failed (see '/usr/InstantClient/node_modules/db-oracle/build/config.log')

[email protected] preuninstall /usr/InstantClient/node_modules/db-oracle rm -rf build/*

npm ERR! [email protected] install: node-waf configure build

npm ERR! sh "-c" "node-waf configure build" failed with 1

npm ERR!

npm ERR! Failed at the [email protected] install script.

npm ERR! This is most likely a problem with the db-oracle package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR! node-waf configure build

npm ERR! You can get their info via:

npm ERR! npm owner ls db-oracle

npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 11.3.0

npm ERR! command "/usr/local/Cellar/node/0.8.11/bin/node" "/usr/local/bin/npm" "install" "db-oracle"

npm ERR! cwd /usr/InstantClient

npm ERR! node -v v0.8.11

npm ERR! npm -v 1.1.62

npm ERR! code ELIFECYCLE

npm ERR!

npm ERR! Additional logging details can be found in:

npm ERR! /usr/InstantClient/npm-debug.log

npm ERR! not ok code 0

2
  • What are the contents of /usr/InstantClient/node_modules/db-oracle/build/config.log? Commented Oct 6, 2012 at 1:41
  • The same contents as displayed here. Can you help with this? Commented Oct 8, 2012 at 9:56

1 Answer 1

1

here is the cricial part of the logs:

Checking for header occi.h : Missing include files for OCI

To fix it, you need to set OCI_INCLUDE_DIR and OCI_LIB_DIR env variables

Assuming that oracle client and sdk are installed in /opt/instantclient

$ export OCI_INCLUDE_DIR=/opt/instantclient/sdk/include/ 
$ export OCI_LIB_DIR=/opt/instantclient

Then just install the module.

Sign up to request clarification or add additional context in comments.

1 Comment

Hi I came across a similar error but after correctly installing oracledb package, then running meteor run it gives an error about oracledb again missing modules - ../build/Release/oracledb stackoverflow.com/questions/45105846/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.