2014-11-24 2 views
0

npm install openzwave 설치 실패 - 컴파일이 실패합니다. libtool이 오류 : 옵션 없음 "-static"opentwave 설치/컴파일 중 libtool 오류 "no option : -static"

다윈 13.3.0 다윈 커널 버전 13.3.0, MacBookPro11,2 다윈

gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2 
gyp ERR! stack  at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) 
gyp ERR! stack  at ChildProcess.emit (events.js:98:17) 
gyp ERR! stack  at Process.ChildProcess._handle.onexit (child_process.js:810:12) 
gyp ERR! System Darwin 13.3.0 
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 
gyp ERR! cwd /Users/me/git/node-zwaveTest/node_modules/openzwave 
gyp ERR! node -v v0.10.33 
gyp ERR! node-gyp -v v1.0.2 
gyp ERR! not ok 
npm ERR! Darwin 13.3.0 
npm ERR! argv "node" "/usr/local/bin/npm" "instal" "openzwave" 
npm ERR! node v0.10.33 
npm ERR! npm v2.1.6 
npm ERR! code ELIFECYCLE 

npm ERR! [email protected] install: `node-gyp rebuild` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] install script. 
npm ERR! This is most likely a problem with the openzwave package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node-gyp rebuild 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls openzwave 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /Users/me/git/node-zwaveTest/npm-debug.log 

답변

0

문제 : 시스템에 설치된 여러 libtools./usr/bin /에있는 것을 사용해야합니다. 설치 경로에 따라 경로를 변경하거나 설치 파일을 변경하십시오.

고궁 박물원 방법 소스에서

$ export PATH=/usr/local/bin:$PATH 
$ npm instal openzwave 

:이 질문은 이제 18 개월 이상 오래

$ svn checkout http://open-zwave.googlecode.com/svn/trunk/ open-zwave-read-only 
$ make (fails, but creates build directory we need) 
$ vi ./cpp/build/support.mk 
(Find AR := line and change libtool to /usr/bin/libtool, save, quit) 
$ make 
fun and profit. 
0

하지만, 난 당신이 최신 OpenZWave를 설치하십시오 다음 설치를 시도해야한다고 생각 openzwave 공유 (npm install openzwave-shared). 이것은 기본 OpenZWave C++ 라이브러리의 컴파일을 동적으로 링크 할 때이를 제거하는 노드 애드온입니다 (설치하려는 노드 패키지의 포크로 시작됨).