polotek/libxmljs — Issue #95: Can't Install using NPM on Ubuntu 10.04 LTS (lucid)
Author: tomasikp
Created: 2012-01-04 23:58:06+00:00
State: open

Installed latest Node and scons

root@mailtest:~# npm install libxmljs

> libxmljs@0.4.3 preinstall /root/node_modules/libxmljs
> make node

scons: Reading SConscript files ...
OSError: [Errno 2] No such file or directory:
File "/root/node_modules/libxmljs/SConstruct", line 43:
cflags += ' ' + shellOut([xml2config, '--cflags'])
File "/root/node_modules/libxmljs/SConstruct", line 19:
return subprocess.Popen(target, stdout=subprocess.PIPE).communicate()[0].strip()
File "/usr/lib/python2.6/subprocess.py", line 633:
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1139:
raise child_exception
make: *** [node] Error 2
npm ERR! error installing libxmljs@0.4.3 Error: libxmljs@0.4.3 preinstall: `make node`
npm ERR! error installing libxmljs@0.4.3 `sh "-c" "make node"` failed with 2
npm ERR! error installing libxmljs@0.4.3 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing libxmljs@0.4.3 at ChildProcess.emit (events.js:70:17)
npm ERR! error installing libxmljs@0.4.3 at maybeExit (child_process.js:359:16)
npm ERR! error installing libxmljs@0.4.3 at Process.onexit (child_process.js:395:5)

> libxmljs@0.4.3 preuninstall /root/node_modules/libxmljs
> make clean

scons: Reading SConscript files ...
OSError: [Errno 2] No such file or directory:
File "/root/node_modules/libxmljs/SConstruct", line 43:
cflags += ' ' + shellOut([xml2config, '--cflags'])
File "/root/node_modules/libxmljs/SConstruct", line 19:
return subprocess.Popen(target, stdout=subprocess.PIPE).communicate()[0].strip()
File "/usr/lib/python2.6/subprocess.py", line 633:
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1139:
raise child_exception
make: *** [clean] Error 2
npm WARN continuing anyway libxmljs@0.4.3 preuninstall: `make clean`
npm WARN continuing anyway `sh "-c" "make clean"` failed with 2
npm ERR! libxmljs@0.4.3 preinstall: `make node`
npm ERR! `sh "-c" "make node"` failed with 2
npm ERR!
npm ERR! Failed at the libxmljs@0.4.3 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.35.4-rscloud
npm ERR! command "node" "/usr/local/bin/npm" "install" "libxmljs"
npm ERR! cwd /root
npm ERR! node -v v0.6.5
npm ERR! npm -v 1.0.106
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log
npm not ok