polotek/libxmljs — Issue #78: I can not install libxmljs.
Author: Dededede4
Created: 2011-10-09 14:34:52+00:00
State: open

Hello,
this is my error :
dededede4@dededede4:~/www/serverTEST$ npm install libxmljs

> libxmljs@0.4.2 preinstall /home/dededede4/www/serverTEST/node_modules/libxmljs
> make node

scons: Reading SConscript files ...
Checking for node.js ...(cached) yes
True
Checking for C++ library xml2... yes
Checking for node.js ...(cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/html_document.os -c -I/usr/include/libxml2 -fPIC src/html_document.cc
In file included from src/html_document.h:5,
from src/html_document.cc:2:
src/libxmljs.h:5:16: error: v8.h: No such file or directory
src/libxmljs.h:6:18: error: node.h: No such file or directory
In file included from src/libxmljs.h:98,
from src/html_document.h:5,
from src/html_document.cc:2:
src/object_wrap.h:9: error: 'node' has not been declared
src/object_wrap.h:9: error: expected '{' before 'ObjectWrap'
src/object_wrap.h:9: error: invalid type in declaration before '{' token
src/object_wrap.h:9: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
src/object_wrap.h:10: error: expected primary-expression before 'public'
src/object_wrap.h:10: error: expected '}' before 'public'
src/object_wrap.h:10: error: expected ',' or ';' before 'public'
src/html_document.cc:9: error: expected '}' at end of input
scons: *** [src/html_document.os] Error 1
scons: building terminated because of errors.
make: *** [node] Erreur 2
npm ERR! error installing libxmljs@0.4.2 Error: libxmljs@0.4.2 preinstall: `make node`
npm ERR! error installing libxmljs@0.4.2 `sh "-c" "make node"` failed with 2
npm ERR! error installing libxmljs@0.4.2 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing libxmljs@0.4.2 at ChildProcess.emit (events.js:70:17)
npm ERR! error installing libxmljs@0.4.2 at ChildProcess.onexit (child_process_legacy.js:246:12)

> libxmljs@0.4.2 preuninstall /home/dededede4/www/serverTEST/node_modules/libxmljs
> make clean

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Cleaning targets ...
scons: done cleaning targets.
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Cleaning targets ...
scons: done cleaning targets.
npm ERR! libxmljs@0.4.2 preinstall: `make node`
npm ERR! `sh "-c" "make node"` failed with 2
npm ERR!
npm ERR! Failed at the libxmljs@0.4.2 preinstall 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! make node
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 Linux 2.6.32-34-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "libxmljs"
npm ERR! cwd /home/dededede4/www/serverTEST
npm ERR! node -v v0.5.5
npm ERR! npm -v 1.0.94
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/dededede4/www/serverTEST/npm-debug.log
npm not ok

Any ideas?
Thank you!