1
의 "신탁"NPM을 설치할 수 없습니다 나는 내 우분투 상자에 오라클 NPM 모듈을 설치하려고 할 때 다음과 같은 오류 메시지를 받았습니다 : 우분투
내 ENV 변수
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
이 올바르게 설정하는 것 :
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 용 포함 파일이 누락되었습니다. –
@ andrew-cooke, 내 나쁜 .... export OCI_INCLUDE_DIR = $ ORACLE_HOME/sdk/include/export OCI_LIB_DIR = $ ORACLE_HOME이 문제를 해결했습니다. 귀하의 의견을 답장 해주십시오. – Luc