Hello
I am trying to install libxmljs with npm but its failing with following log . I have Xcode (4.3.1) and mojito is 0.4.3 installed. I have gcc,make and ant setup as well.
I am new to this. Can someone help ?
bash-3.2$ npm install -g libxmljs
npm http GET
https://registry.npmjs.org/libxmljsnpm http 200
https://registry.npmjs.org/libxmljsnpm http GET
https://registry.npmjs.org/libxmljs/-/libxmljs-0.6.1.tgznpm http 200
https://registry.npmjs.org/libxmljs/-/libxmljs-0.6.1.tgznpm http GET
https://registry.npmjs.org/bindings/1.0.0npm http 200
https://registry.npmjs.org/bindings/1.0.0npm http GET
https://registry.npmjs.org/bindings/-/bindings-1.0.0.tgznpm http 200
https://registry.npmjs.org/bindings/-/bindings-1.0.0.tgz> libx...@0.6.1 install /opt/local/lib/node_modules/libxmljs
> node-gyp rebuild
info it worked if it ends with ok
info downloading:
http://nodejs.org/dist/v0.6.18/node-v0.6.18.tar.gz spawn python [ '/Users/swapnali/.node-gyp/0.6.18/tools/gyp_addon',
'binding.gyp',
'-I/opt/local/lib/node_modules/libxmljs/build/config.gypi',
'-f',
'make' ]
spawn make [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/liblibxmljs/src/libxmljs.o
i686-apple-darwin11-llvm-g++-4.2: error trying to exec 'cc1plus': execvp: No such file or directory
make: *** [Release/obj.target/liblibxmljs/src/libxmljs.o] Error 1
ERR! Error: `make` failed with exit code: 2
at ChildProcess.onExit (/opt/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:212:23)
at ChildProcess.emit (events.js:70:17)
at maybeExit (child_process.js:362:16)
at Process.onexit (child_process.js:398:5)
ERR! not ok
npm ERR! libx...@0.6.1 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the libx...@0.6.1 install script.
npm ERR! This is most likely a problem with the libxmljs 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 libxmljs
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 11.3.0
npm ERR! command "node" "/opt/local/bin/npm" "install" "-g" "libxmljs"
npm ERR! cwd /Users/swapnali/IOS/Cocktails/cocktails/sampleapp
npm ERR! node -v v0.6.18
npm ERR! npm -v 1.1.22
npm ERR! code ELIFECYCLE
npm ERR! message libx...@0.6.1 install: `node-gyp rebuild`
npm ERR! message `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/swapnali/IOS/Cocktails/cocktails/sampleapp/npm-debug.log
npm not ok
bash-3.2$