znerol / node-delta

Delta.js - A JavaScript diff and patch engine for DOM trees

Home Page:http://znerol.github.com/node-delta/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm install deltajs failed

RobertDober opened this issue · comments

Here is the major context information, in case you need more, just ask.

lubuntu 12.04
npm: 1.3.2
node: 0.11.4

Trace
make: *** [Release/obj.target/xmljs/src/xml_attribute.o] Error 1
make: Leaving directory /home/robert/node_modules/deltajs/node_modules/xmlshim/node_modules/libxmljs/build' gyp ERR! build error gyp ERR! stack Error:make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/robert/.nvm/v0.11.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:103:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.2.0-50-generic
gyp ERR! command "node" "/home/robert/.nvm/v0.11.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/robert/node_modules/deltajs/node_modules/xmlshim/node_modules/libxmljs
gyp ERR! node -v v0.11.4
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0

This seems to be coming from libxmljs. Can you build the original libxmljs on your box? Please not that you are running the experimental branch (0.11.x) and not the stable one (0.10.x) of node.

Good point about 11.4 had to fall back to 11.3 for different reasons (its beta status had eluded me, and that had caused me more than one headache, but my bad...).
For 11.3 it installs just fine. I'd be happy to do some testing on 11.4, what version/branch of libxmljs would you like me to build?

It's best to first find a solution for the official libxmljs version. Scanning their issue queue I got two open issues which almost look the same as the one you reported:

Not sure if I understood correctly: Here is what I did

nvm use 0.11.4
 npm i libxmljs

did you mean this with originial ?

This fails with exactly the same error as reported above. I guess you can close this issue.
Thank you for your time, and I'll have some fun with your lib under 0.11.3.

Cheers

What I meant is just forget one moment about node-delta and just try npm install libxmljs and see whether it builds properly with node 0.11.4. If it does then the problem is likely mine, if it does not then its theirs.

Is exactly what i did and reported. Are we out of sync?
Le 5 août 2013 22:12, "znerol" notifications@github.com a écrit :

What I meant is just forget one moment about node-delta and just try npm
install libxmljs and see whether it builds properly with node 0.11.4. If
it does then the problem is likely mine, if it does not then its theirs.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-22137490
.

for building the node you can use following command. (its for ubuntu)

tar -zxf node-v0.6.18.tar.gz
cd node-v0.6.18
./configure && make && sudo make install

@shailendra9 thx but I did not want to build node. I just installed libxmljs as a node package with npm for version 0.11.4 and it failed as described in the original comment regarding this issue (while it worx on 0.11.3). Do you need any further information?
Would you like me to open an issue for libxmljs?
Cheers
Robert

Would you like me to open an issue for libxmljs?

Yes please, on the original repository and not on my fork.