Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails in Node v0.12 and io.js #24

Open
MartijnR opened this issue May 9, 2014 · 18 comments
Open

Installation fails in Node v0.12 and io.js #24

MartijnR opened this issue May 9, 2014 · 18 comments

Comments

@MartijnR
Copy link
Collaborator

MartijnR commented May 9, 2014

make: *** [Release/obj.target/node_xslt/node_xslt.o] Error 1
make: Leaving directory `/home/enketo/test/node_modules/node_xslt/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:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Linux 3.13.0-43-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/enketo/test/node_modules/node_xslt
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Linux 3.13.0-43-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "node_xslt"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! node_xslt@0.1.9 preinstall: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node_xslt@0.1.9 preinstall script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the node_xslt 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 node_xslt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/enketo/test/npm-debug.log
@MartijnR
Copy link
Collaborator Author

@MartijnR
Copy link
Collaborator Author

Created a repo that will npm install node_xslt in different versions of node.js for easy reproduction using Travis. Current results here: https://travis-ci.org/MartijnR/node_xslt_build_tests/builds/24920497

@sadlerw
Copy link

sadlerw commented May 16, 2014

Is there anyway to actually install and use this on npm 1.4.3?

@MartijnR
Copy link
Collaborator Author

Not sure. It works fine on npm 1.4.10 with node 0.10. I am no expert in this, but the repo uses node-gyp to build. Is node-gyp available on your system? (node-gyp -v)

@sadlerw
Copy link

sadlerw commented May 16, 2014

thanks - that did it.

@sntran
Copy link

sntran commented Jul 28, 2014

Any luck on getting node_xslt to work under node 0.11? I have looked into nan, but I am not an expert in C to actually modify node_xslt

@MartijnR MartijnR changed the title installation fails in Node v1.11.13 installation fails in Node v0.11.13 Oct 7, 2014
@kildem
Copy link

kildem commented Feb 16, 2015

installation fails in Node v0.12
How can I fix this issue? ????

@andreyvital
Copy link
Collaborator

@kildem

Can you provide more details?
Thanks.

@kildem
Copy link

kildem commented Feb 16, 2015

I have update node from version 10 to 12:
this is the log file:
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'install', '--save', 'node_xslt' ]
2 info using npm@2.5.1
3 info using node@v0.12.0
4 warn package.json nan@1.6.2 No README data
5 silly cache add args [ 'node_xslt', null ]
6 verbose cache add spec node_xslt
7 silly cache add parsed spec { raw: 'node_xslt',
7 silly cache add scope: null,
7 silly cache add name: 'node_xslt',
7 silly cache add rawSpec: '',
7 silly cache add spec: '',
7 silly cache add type: 'range' }
8 verbose addNamed node_xslt@

9 silly addNamed semver.valid null
10 silly addNamed semver.validRange *
11 silly addNameRange { name: 'node_xslt', range: '', hasData: false }
12 silly mapToRegistry name node_xslt
13 silly mapToRegistry using default registry
14 silly mapToRegistry registry https://registry.npmjs.org/
15 silly mapToRegistry uri https://registry.npmjs.org/node_xslt
16 verbose addNameRange registry:https://registry.npmjs.org/node_xslt not in flight; fetching
17 verbose request uri https://registry.npmjs.org/node_xslt
18 verbose request no auth needed
19 info attempt registry request try #1 at 1:02:48 PM
20 verbose request id fa14e129ade61487
21 verbose etag "1XQRL1MEHOR6O3CPW4D5KCT4Z"
22 http request GET https://registry.npmjs.org/node_xslt
23 http 304 https://registry.npmjs.org/node_xslt
24 silly get cb [ 304,
24 silly get { date: 'Mon, 16 Feb 2015 12:02:48 GMT',
24 silly get server: 'Apache',
24 silly get via: '1.1 varnish',
24 silly get 'last-modified': 'Mon, 16 Feb 2015 12:02:49 GMT',
24 silly get 'cache-control': 'max-age=60',
24 silly get etag: '"1XQRL1MEHOR6O3CPW4D5KCT4Z"',
24 silly get age: '0',
24 silly get 'x-served-by': 'cache-lhr6321-LHR',
24 silly get 'x-cache': 'MISS',
24 silly get 'x-cache-hits': '0',
24 silly get 'x-timer': 'S1424088168.786333,VS0,VE373',
24 silly get vary: 'Accept',
24 silly get 'content-length': '0',
24 silly get 'keep-alive': 'timeout=10, max=50',
24 silly get connection: 'Keep-Alive' } ]
25 verbose etag https://registry.npmjs.org/node_xslt from cache
26 verbose get saving node_xslt to /Users/ilde/.npm/registry.npmjs.org/node_xslt/.cache.json
27 silly addNameRange number 2 { name: 'node_xslt', range: '
', hasData: true }
28 silly addNameRange versions [ 'node_xslt',
28 silly addNameRange [ '0.1.1',
28 silly addNameRange '0.1.2',
28 silly addNameRange '0.1.3',
28 silly addNameRange '0.1.4',
28 silly addNameRange '0.1.5',
28 silly addNameRange '0.1.6',
28 silly addNameRange '0.1.7',
28 silly addNameRange '0.1.8',
28 silly addNameRange '0.1.9' ] ]
29 verbose addNamed node_xslt@0.1.9
30 silly addNamed semver.valid 0.1.9
31 silly addNamed semver.validRange 0.1.9
32 silly cache afterAdd node_xslt@0.1.9
33 verbose afterAdd /Users/ilde/.npm/node_xslt/0.1.9/package/package.json not in flight; writing
34 verbose afterAdd /Users/ilde/.npm/node_xslt/0.1.9/package/package.json written
35 silly install resolved [ { name: 'node_xslt',
35 silly install resolved version: '0.1.9',
35 silly install resolved main: './build/Release/node_xslt',
35 silly install resolved engines: { node: '>=0.1.93' },
35 silly install resolved dependencies: {},
35 silly install resolved scripts: { preinstall: 'node-gyp rebuild' },
35 silly install resolved description: 'A simple XSLT package for node.js',
35 silly install resolved author: { name: 'Brian Suh', email: 'brian.j.suh@gmail.com' },
35 silly install resolved homepage: 'https://github.com/bsuh/node_xslt',
35 silly install resolved repository: { type: 'git', url: 'git://github.com/bsuh/node_xslt.git' },
35 silly install resolved readme: '# node_xslt\n\n xslt = require('node_xslt')\n\n stylesheet = xslt.readXsltString(string);\n // readXsltString\n // Arguments: string containing XSLT\n // Returns: stylesheet object\n\n stylesheet = xslt.readXsltFile(filename);\n // readXsltFile\n // Arguments: filename to file containing XSLT\n // Returns: stylesheet object\n\n document = xslt.readXmlString(string);\n // readXmlString\n // Arguments: string containing XML\n // Returns: document object\n\n document = xslt.readXmlFile(filename);\n // readXmlFile\n // Arguments: filename to file containing XML\n // Returns: document object\n\n htmlDocument = xslt.readHtmlString(string);\n // readHtmlString\n // Arguments: string containing HTML\n // Returns: document object\n\n htmlDocument = xslt.readHtmlFile(string);\n // readHtmlFile\n // Arguments: filename to file containing HTML\n // Returns: document object\n \n transformedString = xslt.transform(stylesheet, document, parameters);\n // transform\n // Arguments:\n // * stylesheet: stylesheet object\n // * document: document object\n // * parameters: an array of parameters to be passed to the stylesheet. length must be multiple of 2.\n // Example: ['param1Name', 'param1Value', 'param2Name', 'param2Value']\n\n## Requirements\n\n* libxml2 (libxml2-dev package for Debian-based distros)\n* libxslt (libxslt-dev package for Debian-based distros)\n* libexslt (libxslt-dev package for Debian-based distros)\n* xml2-config (Needs to be on PATH)\n\n## Installation\n\nnpm\n\n npm install node_xslt\n\nsource\n\n In the root directory, run node-gyp rebuild to generate\n ./build/Release/node_xslt.node\n',
35 silly install resolved readmeFilename: 'README.md',
35 silly install resolved bugs: { url: 'https://github.com/bsuh/node_xslt/issues' },
35 silly install resolved _id: 'node_xslt@0.1.9',
35 silly install resolved dist:
35 silly install resolved { shasum: 'ad01c7d57ca5563294717ac0ce7604b77bc032f1',
35 silly install resolved tarball: 'http://registry.npmjs.org/node_xslt/-/node_xslt-0.1.9.tgz' },
35 silly install resolved _from: 'node_xslt@*',
35 silly install resolved _npmVersion: '1.3.5',
35 silly install resolved _npmUser: { name: 'bahblah', email: 'brian.j.suh@gmail.com' },
35 silly install resolved maintainers: [ [Object] ],
35 silly install resolved directories: {},
35 silly install resolved _shasum: 'ad01c7d57ca5563294717ac0ce7604b77bc032f1',
35 silly install resolved _resolved: 'https://registry.npmjs.org/node_xslt/-/node_xslt-0.1.9.tgz' } ]
36 info install node_xslt@0.1.9 into /Users/ilde/..
37 info installOne node_xslt@0.1.9
38 verbose installOne of node_xslt to /Users/ilde/.. not in flight; installing
39 verbose lock using /Users/ilde/.npm/_locks/node-xslt-009641292e9d9ece.lock for /Users/ilde/../node_modules/node_xslt
40 silly install write writing node_xslt 0.1.9 to /Users/ilde/../node_modules/node_xslt
41 silly cache addNamed cb node_xslt@0.1.9
42 verbose unbuild node_modules/node_xslt
43 verbose gentlyRm vacuuming /Users/ilde/../node_modules/node_xslt
44 verbose tar unpack /Users/ilde/.npm/node_xslt/0.1.9/package.tgz
45 verbose tar unpacking to /Users/ilde/../node_modules/node_xslt
46 verbose gentlyRm vacuuming /Users/ilde/../node_modules/node_xslt
47 silly gunzTarPerm modes [ '755', '644' ]
48 silly gunzTarPerm extractEntry package.json
49 silly gunzTarPerm extractEntry .npmignore
50 silly gunzTarPerm extractEntry README.md
51 silly gunzTarPerm extractEntry binding.gyp
52 silly gunzTarPerm extractEntry .binding.gyp.un~
53 silly gunzTarPerm extractEntry .package.json.un~
54 silly gunzTarPerm extractEntry macros.h
55 silly gunzTarPerm extractEntry node_xslt.cc
56 silly gunzTarPerm extractEntry LICENSE.txt
57 silly gunzTarPerm extractEntry scopeguard.h
58 silly gunzTarPerm extractEntry wscript
59 info preinstall node_xslt@0.1.9
60 verbose unsafe-perm in lifecycle true
61 info node_xslt@0.1.9 Failed to exec preinstall script
62 verbose unlock done using /Users/ilde/.npm/_locks/node-xslt-009641292e9d9ece.lock for /Users/ilde/../node_modules/node_xslt
63 verbose stack Error: node_xslt@0.1.9 preinstall: node-gyp rebuild
63 verbose stack Exit status 1
63 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
63 verbose stack at EventEmitter.emit (events.js:110:17)
63 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:14:12)
63 verbose stack at ChildProcess.emit (events.js:110:17)
63 verbose stack at maybeClose (child_process.js:1008:16)
63 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
64 verbose pkgid node_xslt@0.1.9
65 verbose cwd /Users/ilde/..
66 error Darwin 14.1.0
67 error argv "node" "/usr/local/bin/npm" "install" "--save" "node_xslt"
68 error node v0.12.0
69 error npm v2.5.1
70 error code ELIFECYCLE
71 error node_xslt@0.1.9 preinstall: node-gyp rebuild
71 error Exit status 1
72 error Failed at the node_xslt@0.1.9 preinstall script 'node-gyp rebuild'.
72 error This is most likely a problem with the node_xslt package,
72 error not with npm itself.
72 error Tell the author that this fails on your system:
72 error node-gyp rebuild
72 error You can get their info via:
72 error npm owner ls node_xslt
72 error There is likely additional logging output above.
73 verbose exit [ 1, true ]
74 verbose unbuild node_modules/node_xslt
75 info preuninstall node_xslt@0.1.9
76 info uninstall node_xslt@0.1.9
77 verbose unbuild rmStuff node_xslt@0.1.9 from /Users/ilde/../node_modules
78 info postuninstall node_xslt@0.1.9
79 verbose gentlyRm vacuuming /Users/ilde/../node_modules/node_xslt
80 silly gentlyRm purging /Users/ilde/../node_modules/node_xslt
81 silly gentlyRm quitting because other entries in /Users/ilde/../node_modules

@andreyvital
Copy link
Collaborator

Well, I'll have to dive into some sort of debugging as I can't reproduce this easily.

@kildem
Copy link

kildem commented Feb 16, 2015

if I switch to node v0.10.9 I can install node_xslt and the app works, but if I switch back to node v.0.12
it doesn't run

@MartijnR MartijnR changed the title installation fails in Node v0.11.13 installation fails in Node v0.10.37+ Mar 20, 2015
@MartijnR MartijnR changed the title installation fails in Node v0.10.37+ installation fails in Node v0.12 Mar 20, 2015
@MartijnR
Copy link
Collaborator Author

@CentaurWarchief Are you able to install this on node 0.12?

If so how do you install the prerequisites? I use apt-get install libxml2-dev libxslt1-dev.

I updated the error log with the 0.12 in the top post.

@MartijnR MartijnR changed the title installation fails in Node v0.12 Installation fails in Node v0.12 and io.js Mar 20, 2015
@MartijnR
Copy link
Collaborator Author

Imho we don't need to maintain compatibility with node v0.10.x in a new version of this library. Any thoughts on that? That might simplify the fix.

@zeroedin
Copy link

+1 for installation on Node v0.12.

@alxndrsn
Copy link

alxndrsn commented Jul 7, 2015

Any update on support for node 0.12.x?

@MartijnR
Copy link
Collaborator Author

MartijnR commented Jul 7, 2015

This will offer much better hope for node 0.12 support: https://github.com/albanm/node-libxslt. Though currently it is not working for me either on node 0.12.6, node-libxslt and its main dependency (libxmljs) are under active development.

@kildem
Copy link

kildem commented Jul 7, 2015

I've switched to xslt4node and it works fine with node v0.12
https://www.npmjs.com/package/xslt4node

@MartijnR
Copy link
Collaborator Author

MartijnR commented Dec 2, 2015

update: https://github.com/albanm/node-libxslt supports NodeJS 0.12, v4.x and v5.x now (and no Java!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants