Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Cannot install "oracle" npm on ubuntu

Cannot install "oracle" npm on ubuntu

Problem

I got the following error message when I try to Install Oracle Npm module on my ubuntu box:

npm install oracle
npm http GET https://registry.npmjs.org/oracle
npm http 304 https://registry.npmjs.org/oracle

> [email protected] install /home/luc/node_modules/oracle
> node-waf configure build

Setting srcdir to                        : /home/luc/node_modules/oracle 
Setting blddir to                        : /home/luc/node_modules/oracle/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                   : ok /home/luc/.nave/installed/0.6.12/lib/node 
Checking for node prefix                 : ok /home/luc/.nave/installed/0.6.12 
Checking for header occi.h               : Missing include files for OCI 
/home/luc/node_modules/oracle/wscript:28: error: the configuration failed (see '/home/luc/node_modules/oracle/build/config.log')
npm ERR! error installing [email protected]

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 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 oracle
npm ERR! There is likely additional logging output above.
npm ERR! 
npm ERR! System Linux 2.6.38-8-server
npm ERR! command "node" "/home/luc/.nave/installed/0.6.12/bin/npm" "install" "oracle"
npm ERR! cwd /home/luc
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: `node-waf configure build`
npm ERR! message `sh "-c" "node-waf configure build"` failed with 1
npm ERR! errno {}
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/luc/npm-debug.log
npm not ok

My env variables seem to be correctly set:

export ORACLE_HOME=/home/luc/instantclient_11_2/
export LD_LIBRARY_PATH=$ORACLE_HOME
export DYLD_LIBRARY_PATH=$ORACLE_HOME

and the symlink as well:

libclntsh.so -> libclntsh.so.11.1
libocci.so -> libocci.so.11.1

Is there something missing in my config ?

Problem courtesy of: Luc

Solution

heh :o) ok, so just reading the error message above, it looks like the OCI include files are missing... (i have no idea what those are, even!)

Solution courtesy of: andrew cooke

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Cannot install "oracle" npm on ubuntu

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×