首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Red Hat Enterprise Linux Server 6.4版上安装node-oracle圣地亚哥

在Red Hat Enterprise Linux Server 6.4版上安装node-oracle圣地亚哥
EN

Stack Overflow用户
提问于 2013-10-17 22:30:15
回答 2查看 569关注 0票数 1

我一直在尝试在(Red Hat Enterprise Linux Server release 6.4 (圣地亚哥))服务器.However上安装node-oracle,但没有成功。我已经仔细地遵循了网页上的说明,但是当我运行"npm install oracle“时,我得到了以下错误。

代码语言:javascript
复制
npm http GET https://registry.npmjs.org/oracle
npm http 304 https://registry.npmjs.org/oracle


oracle@0.3.4 install /home/oracle/node_modules/oracle
node-gyp rebuild

make: Entering directory /home/oracle/node_modules/oracle/build'
 CXX(target) Release/obj.target/oracle_bindings/src/connection.o
 CXX(target) Release/obj.target/oracle_bindings/src/oracle_bindings.o
 CXX(target) Release/obj.target/oracle_bindings/src/executeBaton.o
 CXX(target) Release/obj.target/oracle_bindings/src/outParam.o
 SOLINK_MODULE(target) Release/obj.target/oracle_bindings.node
 /usr/bin/ld: cannot find -locci
 collect2: ld returned 1 exit status
 make: *** [Release/obj.target/oracle_bindings.node] Error 1
 make: Leaving directory/home/oracle/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/node-gyp/lib/build.js:267:23)
 gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
 gyp ERR! stack at Process.ChildProcess.handle.onexit (childprocess.js:789:12)
 gyp ERR! System Linux 2.6.32-358.el6.x86_64
 gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
 gyp ERR! cwd /home/oracle/node_modules/oracle
 gyp ERR! node -v v0.10.18
 gyp ERR! node-gyp -v v0.10.6
 gyp ERR! not ok
 npm ERR! weird error 1
 npm ERR! not ok code 0

我尝试了几种方法,比如下载源代码,然后在服务器上重新编译,但我再次遇到了类似的错误。

干杯,阿卜杜拉

EN

回答 2

Stack Overflow用户

发布于 2013-10-18 02:10:01

从错误中看,您似乎没有设置OCI_INCLUDE_DIR/OCI_LIB_DIR环境变量

代码语言:javascript
复制
export OCI_HOME=<directory of Oracle instant client>
export OCI_LIB_DIR=$OCI_HOME
export OCI_INCLUDE_DIR=$OCI_HOME/sdk/include
export OCI_VERSION=<the instant client major version number> # Optional. Default is 11.
票数 1
EN

Stack Overflow用户

发布于 2014-10-03 17:26:47

我也遇到了同样的问题,只不过我使用的是ubuntu10.04,而且我的安装程序没有安装lnnz11,而不是locci。我设置了环境变量,pre_install_check.sh回复我“一切看起来都很棒”,但它不起作用。

在那之后,我下载了即时客户端版本11而不是12,并重新定义了环境变量,现在它正在工作。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19429551

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档