oracle - 无法在 ubuntu 上安装 "oracle"npm

标签 oracle node.js

当我尝试在我的 ubuntu 机器上安装 oracle npm 模块时收到以下错误消息:

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

> oracle@0.1.2 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 oracle@0.1.2

npm ERR! oracle@0.1.2 install: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR! 
npm ERR! Failed at the oracle@0.1.2 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 oracle@0.1.2 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

我的环境变量似乎设置正确:

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

以及符号链接(symbolic link):

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

我的配置中是否缺少某些内容?

最佳答案

呵呵:o) 好的,所以只要阅读上面的错误消息,看起来 OCI 包含文件丢失了...(我什至不知道那些是什么!)

关于oracle - 无法在 ubuntu 上安装 "oracle"npm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9667079/

相关文章:

javascript - 如何在nodejs和mongodb中从最后一个数字自动递增

ruby-on-rails - 如何在 Node.js 中解码/解压缩 memcached 支持的 Rails 缓存(Dalli gem)中的值

node.js - 使用 Nodejs (Crypto) 加密文件会引发错误 : bad base64 decode

javascript - 是否有可能以某种方式与 Promise 运行同步循环?

java - 从 hibernate 中检索数据库列长度?

c# - 必须声明 UTL_RECOMP.RECOMP_SERIAL

oracle - 我可以在哪些数据类型上使用 Oracle PL/SQL RANGE 子句来约束变量?

javascript - node-http-proxy proxy.on ('proxyReq' ...) 永远不会触发

sql - PL/SQL 如果表不存在创建

php - Oracle 过程输出参数从 PHP 返回 -1