1
「甲骨文」 NPM我得到了以下錯誤消息,當我試圖在我的Ubuntu箱安裝Oracle NPM模塊:無法安裝在Ubuntu
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
我的ENV變量似乎是正確設置:
export ORACLE_HOME=/home/luc/instantclient_11_2/
export LD_LIBRARY_PATH=$ORACLE_HOME
export DYLD_LIBRARY_PATH=$ORACLE_HOME
和符號鏈接,以及:
libclntsh.so -> libclntsh.so.11.1
libocci.so -> libocci.so.11.1
有什麼在我的配置缺失?
我猜你!缺少OCI的包含文件。 – 2012-03-12 12:38:04
@ andrew-cooke,我的不好.... export OCI_INCLUDE_DIR = $ ORACLE_HOME/sdk/include /和export OCI_LIB_DIR = $ ORACLE_HOME修復了這個問題。你能否讓你的評論成爲答案? – Luc 2012-03-12 12:47:25