Skip to content

Instantly share code, notes, and snippets.

@Valid
Created October 16, 2010 17:57
Show Gist options
  • Select an option

  • Save Valid/630087 to your computer and use it in GitHub Desktop.

Select an option

Save Valid/630087 to your computer and use it in GitHub Desktop.
ubuntu@domU-12-31-38-02-50-19:~$ npm install libxmljs
npm info it worked if it ends with ok
npm info using npm@0.2.4
npm info install libxmljs@0.4.1
npm info preinstall libxmljs@0.4.1
scons: Reading SConscript files ...
OSError: [Errno 2] No such file or directory:
File "/usr/local/lib/node/.npm/libxmljs/0.4.1/package/SConstruct", line 43:
cflags = shellOut([xml2config, '--cflags'])
File "/usr/local/lib/node/.npm/libxmljs/0.4.1/package/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 info libxmljs@0.4.1 Failed to exec preinstall script
npm ERR! install failed Error: libxmljs@0.4.1 preinstall: `make node`
npm ERR! install failed `sh` failed with 2
npm ERR! install failed at ChildProcess.<anonymous> (/usr/local/lib/node/.npm/npm/0.2.4/package/lib/utils/exec.js:24:18)
npm ERR! install failed at ChildProcess.emit (events:27:15)
npm ERR! install failed at ChildProcess.onexit (child_process:152:12)
npm ERR! install failed at node.js:770:9
npm info install failed rollback
npm info not installed libxmljs,0.4.1
npm info install failed rolled back
npm ERR! Error: libxmljs@0.4.1 preinstall: `make node`
npm ERR! `sh` failed with 2
npm ERR! at ChildProcess.<anonymous> (/usr/local/lib/node/.npm/npm/0.2.4/package/lib/utils/exec.js:24:18)
npm ERR! at ChildProcess.emit (events:27:15)
npm ERR! at ChildProcess.onexit (child_process:152:12)
npm ERR! at node.js:770:9
npm ERR!
npm ERR! Failed at the libxmljs@0.4.1 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 may be additional logging output above.
npm not ok
ubuntu@domU-12-31-38-02-50-19:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment