Problems installing libxmljs

954 views
Skip to first unread message

Per Halvor Tryggeseth

unread,
Sep 24, 2014, 7:06:21 AM9/24/14
to libx...@googlegroups.com
I have problems installing libxmljs. I am on ubuntu 14.04. Help appreciated! When running npm install libxmljs, I get the following error:

make: Entering directory `/home/pht/NetBeansProjects/jsadhoc/node_modules/libxmljs/build'
  CC(target) Release/obj.target/libxml/vendor/libxml/buf.o
In file included from ../vendor/libxml/buf.c:16:0:
../vendor/libxml/libxml.h:49:19: fatal error: stdio.h: No such file or directory
 #include <stdio.h>
                   ^
compilation terminated.
make: *** [Release/obj.target/libxml/vendor/libxml/buf.o] Error 1
make: Leaving directory `/home/pht/NetBeansProjects/jsadhoc/node_modules/libxmljs/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/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 Linux 3.13.0-35-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pht/NetBeansProjects/jsadhoc/node_modules/libxmljs
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

npm ERR! libx...@0.11.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the libx...@0.11.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! System Linux 3.13.0-35-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "libxmljs"
npm ERR! cwd /home/pht/NetBeansProjects/jsadhoc
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

Per Halvor

Per Halvor Tryggeseth

unread,
Sep 25, 2014, 5:30:24 PM9/25/14
to libx...@googlegroups.com
Hi again

I removed my nodejs/npm installation (sudo apt-get remove nodejs). It was installed via Chris Lea (Nodesource) ppa. Then I installed the same version of nodejs (v0.10.32) via nvm. After this I was able to install libxmljs:-)

Per Halvor
Reply all
Reply to author
Forward
0 new messages