bnoordhuis / node-buffertools

working with node.js buffers made easy
ISC License
205 stars 35 forks source link

install failed #61

Closed jdeut closed 10 years ago

jdeut commented 10 years ago

Like #60 i'm failing to install buffertools.

I execute

$ npm config set python /usr/bin/python2.7 -g
$ npm install buffertolls

an it fails with:

gyp ERR! configure error 
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack     at errnoException (child_process.js:1001:11)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:792:34)
gyp ERR! System Linux 2.6.32-431.23.3.el6.x86_64
gyp ERR! command "node" "/package/host/localhost/nodejs-0.10.30/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/energien/etherpad-lite/node_modules/ep_email_notifications/node_modules/buffertools
gyp ERR! node -v v0.10.30
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok 
npm ERR! buffertools@2.1.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the buffertools@2.1.2 install script.
npm ERR! This is most likely a problem with the buffertools 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 buffertools
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 2.6.32-431.23.3.el6.x86_64
npm ERR! command "/package/host/localhost/nodejs-0.10.30/bin/node" "/usr/local/bin/npm" "install" "buffertools"
npm ERR! cwd /home/energien/etherpad-lite/node_modules/ep_email_notifications/node_modules
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/energien/etherpad-lite/node_modules/ep_email_notifications/node_modules/npm-debug.log
npm ERR! not ok code 0

the content of npm-debug.log is:

$ cat npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/package/host/localhost/nodejs-0.10.30/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'install',
1 verbose cli   'buffertools' ]
2 info using npm@1.4.21
3 info using node@v0.10.30
4 verbose readDependencies using package.json deps
5 verbose cache add [ 'buffertools@>= 1.0.8', null ]
6 verbose cache add name=undefined spec="buffertools@>= 1.0.8" args=["buffertools@>= 1.0.8",null]
7 verbose parsed url { protocol: null,
7 verbose parsed url   slashes: null,
7 verbose parsed url   auth: null,
7 verbose parsed url   host: null,
7 verbose parsed url   port: null,
7 verbose parsed url   hostname: null,
7 verbose parsed url   hash: null,
7 verbose parsed url   search: null,
7 verbose parsed url   query: null,
7 verbose parsed url   pathname: 'buffertools@%3E=%201.0.8',
7 verbose parsed url   path: 'buffertools@%3E=%201.0.8',
7 verbose parsed url   href: 'buffertools@%3E=%201.0.8' }
8 verbose cache add name="buffertools" spec=">= 1.0.8" args=["buffertools",">= 1.0.8"]
9 verbose parsed url { protocol: null,
9 verbose parsed url   slashes: null,
9 verbose parsed url   auth: null,
9 verbose parsed url   host: null,
9 verbose parsed url   port: null,
9 verbose parsed url   hostname: null,
9 verbose parsed url   hash: null,
9 verbose parsed url   search: null,
9 verbose parsed url   query: null,
9 verbose parsed url   pathname: '%3E=%201.0.8',
9 verbose parsed url   path: '%3E=%201.0.8',
9 verbose parsed url   href: '%3E=%201.0.8' }
10 verbose addNamed [ 'buffertools', '>= 1.0.8' ]
11 verbose addNamed [ null, '>=1.0.8' ]
12 silly lockFile 8bb4c28b-buffertools-1-0-8 buffertools@>= 1.0.8
13 verbose lock buffertools@>= 1.0.8 /home/energien/.npm/8bb4c28b-buffertools-1-0-8.lock
14 silly addNameRange { name: 'buffertools', range: '>=1.0.8', hasData: false }
15 verbose registry.get https://registry.npmjs.org/buffertools not expired, no request
16 silly addNameRange number 2 { name: 'buffertools', range: '>=1.0.8', hasData: true }
17 silly addNameRange versions [ 'buffertools',
17 silly addNameRange   [ '1.0.0',
17 silly addNameRange     '1.0.1',
17 silly addNameRange     '1.0.2',
17 silly addNameRange     '1.0.3',
17 silly addNameRange     '1.0.4',
17 silly addNameRange     '1.0.5',
17 silly addNameRange     '1.0.6',
17 silly addNameRange     '1.0.7',
17 silly addNameRange     '1.0.8',
17 silly addNameRange     '1.0.9',
17 silly addNameRange     '1.1.0',
17 silly addNameRange     '1.1.1',
17 silly addNameRange     '2.0.0',
17 silly addNameRange     '2.0.1',
17 silly addNameRange     '2.1.0',
17 silly addNameRange     '2.1.1',
17 silly addNameRange     '2.1.2' ] ]
18 verbose addNamed [ 'buffertools', '2.1.2' ]
19 verbose addNamed [ '2.1.2', '2.1.2' ]
20 silly lockFile 95ef3c27-buffertools-2-1-2 buffertools@2.1.2
21 verbose lock buffertools@2.1.2 /home/energien/.npm/95ef3c27-buffertools-2-1-2.lock
22 silly lockFile 95ef3c27-buffertools-2-1-2 buffertools@2.1.2
23 silly lockFile 95ef3c27-buffertools-2-1-2 buffertools@2.1.2
24 silly lockFile 8bb4c28b-buffertools-1-0-8 buffertools@>= 1.0.8
25 silly lockFile 8bb4c28b-buffertools-1-0-8 buffertools@>= 1.0.8
26 silly resolved [ { name: 'buffertools',
26 silly resolved     main: 'buffertools',
26 silly resolved     version: '2.1.2',
26 silly resolved     keywords: [ 'buffer', 'buffers' ],
26 silly resolved     description: 'Working with node.js buffers made easy.',
26 silly resolved     homepage: 'https://github.com/bnoordhuis/node-buffertools',
26 silly resolved     author:
26 silly resolved      { name: 'Ben Noordhuis',
26 silly resolved        email: 'info@bnoordhuis.nl',
26 silly resolved        url: 'http://bnoordhuis.nl/' },
26 silly resolved     repository:
26 silly resolved      { type: 'git',
26 silly resolved        url: 'https://github.com/bnoordhuis/node-buffertools.git' },
26 silly resolved     engines: { node: '>=0.3.0' },
26 silly resolved     scripts: { test: 'node test.js', install: 'node-gyp rebuild' },
26 silly resolved     license: 'ISC',
26 silly resolved     gypfile: true,
26 silly resolved     contributors: [ [Object], [Object], [Object], [Object], [Object] ],
26 silly resolved     bugs: { url: 'https://github.com/bnoordhuis/node-buffertools/issues' },
26 silly resolved     _id: 'buffertools@2.1.2',
26 silly resolved     dist:
26 silly resolved      { shasum: 'd667afc1ef8b9932e90a25f2e3a66a929d42daab',
26 silly resolved        tarball: 'http://registry.npmjs.org/buffertools/-/buffertools-2.1.2.tgz' },
26 silly resolved     _from: 'buffertools@>= 1.0.8',
26 silly resolved     _npmVersion: '1.4.6',
26 silly resolved     _npmUser: { name: 'bnoordhuis', email: 'info@bnoordhuis.nl' },
26 silly resolved     maintainers: [ [Object] ],
26 silly resolved     directories: {},
26 silly resolved     _shasum: 'd667afc1ef8b9932e90a25f2e3a66a929d42daab',
26 silly resolved     _resolved: 'https://registry.npmjs.org/buffertools/-/buffertools-2.1.2.tgz',
26 silly resolved     readme: 'ERROR: No README data found!' } ]
27 info install buffertools@2.1.2 into /home/energien/etherpad-lite/node_modules/ep_email_notifications
28 info installOne buffertools@2.1.2
29 verbose node_modules/buffertools unbuild
30 verbose tar unpack /home/energien/.npm/buffertools/2.1.2/package.tgz
31 silly lockFile ed422000-cations-node-modules-buffertools tar:///home/energien/etherpad-lite/node_modules/ep_email_notifications/node_modules/buffertools
32 verbose lock tar:///home/energien/etherpad-lite/node_modules/ep_email_notifications/node_modules/buffertools /home/energien/.npm/ed422000-cations-node-modules-buffertools.lock
33 silly lockFile 13c0c115-pm-buffertools-2-1-2-package-tgz tar:///home/energien/.npm/buffertools/2.1.2/package.tgz
34 verbose lock tar:///home/energien/.npm/buffertools/2.1.2/package.tgz /home/energien/.npm/13c0c115-pm-buffertools-2-1-2-package-tgz.lock
35 silly gunzTarPerm modes [ '700', '600' ]
36 silly gunzTarPerm extractEntry package.json
37 silly gunzTarPerm modified mode [ 'package.json', 420, 384 ]
38 silly gunzTarPerm extractEntry .npmignore
39 silly gunzTarPerm modified mode [ '.npmignore', 420, 384 ]
40 silly gunzTarPerm extractEntry README.md
41 silly gunzTarPerm modified mode [ 'README.md', 420, 384 ]
42 silly gunzTarPerm extractEntry LICENSE
43 silly gunzTarPerm modified mode [ 'LICENSE', 420, 384 ]
44 silly gunzTarPerm extractEntry buffertools.js
45 silly gunzTarPerm modified mode [ 'buffertools.js', 420, 384 ]
46 silly gunzTarPerm extractEntry test.js
47 silly gunzTarPerm modified mode [ 'test.js', 420, 384 ]
48 silly gunzTarPerm extractEntry binding.gyp
49 silly gunzTarPerm modified mode [ 'binding.gyp', 420, 384 ]
50 silly gunzTarPerm extractEntry buffertools.cc
51 silly gunzTarPerm modified mode [ 'buffertools.cc', 420, 384 ]
52 silly gunzTarPerm extractEntry .mailmap
53 silly gunzTarPerm modified mode [ '.mailmap', 420, 384 ]
54 silly gunzTarPerm extractEntry AUTHORS
55 silly gunzTarPerm modified mode [ 'AUTHORS', 420, 384 ]
56 silly gunzTarPerm extractEntry BoyerMoore.h
57 silly gunzTarPerm modified mode [ 'BoyerMoore.h', 420, 384 ]
58 silly gunzTarPerm extractEntry wscript
59 silly gunzTarPerm modified mode [ 'wscript', 420, 384 ]
60 silly lockFile ed422000-cations-node-modules-buffertools tar:///home/energien/etherpad-lite/node_modules/ep_email_notifications/node_modules/buffertools
61 silly lockFile ed422000-cations-node-modules-buffertools tar:///home/energien/etherpad-lite/node_modules/ep_email_notifications/node_modules/buffertools
62 silly lockFile 13c0c115-pm-buffertools-2-1-2-package-tgz tar:///home/energien/.npm/buffertools/2.1.2/package.tgz
63 silly lockFile 13c0c115-pm-buffertools-2-1-2-package-tgz tar:///home/energien/.npm/buffertools/2.1.2/package.tgz
64 info preinstall buffertools@2.1.2
65 verbose readDependencies using package.json deps
66 verbose readDependencies using package.json deps
67 silly resolved []
68 verbose about to build /home/energien/etherpad-lite/node_modules/ep_email_notifications/node_modules/buffertools
69 info build /home/energien/etherpad-lite/node_modules/ep_email_notifications/node_modules/buffertools
70 verbose linkStuff [ false,
70 verbose linkStuff   false,
70 verbose linkStuff   false,
70 verbose linkStuff   '/home/energien/etherpad-lite/node_modules/ep_email_notifications/node_modules' ]
71 info linkStuff buffertools@2.1.2
72 verbose linkBins buffertools@2.1.2
73 verbose linkMans buffertools@2.1.2
74 verbose rebuildBundles buffertools@2.1.2
75 info install buffertools@2.1.2
76 verbose unsafe-perm in lifecycle true
77 info buffertools@2.1.2 Failed to exec install script
78 verbose node_modules/buffertools unbuild
79 info preuninstall buffertools@2.1.2
80 info uninstall buffertools@2.1.2
81 verbose true,/home/energien/etherpad-lite/node_modules/ep_email_notifications/node_modules,/home/energien/etherpad-lite/node_modules/ep_email_notifications/node_modules unbuild buffertools@2.1.2
82 info postuninstall buffertools@2.1.2
83 error buffertools@2.1.2 install: `node-gyp rebuild`
83 error Exit status 1
84 error Failed at the buffertools@2.1.2 install script.
84 error This is most likely a problem with the buffertools package,
84 error not with npm itself.
84 error Tell the author that this fails on your system:
84 error     node-gyp rebuild
84 error You can get their info via:
84 error     npm owner ls buffertools
84 error There is likely additional logging output above.
85 error System Linux 2.6.32-431.23.3.el6.x86_64
86 error command "/package/host/localhost/nodejs-0.10.30/bin/node" "/usr/local/bin/npm" "install" "buffertools"
87 error cwd /home/energien/etherpad-lite/node_modules/ep_email_notifications/node_modules
88 error node -v v0.10.30
89 error npm -v 1.4.21
90 error code ELIFECYCLE
91 verbose exit [ 1, true ]

Thank you for your effort and best regards!

bnoordhuis commented 10 years ago

I've been looking at the log for five minutes now and I don't see why it fails, just that node-gyp errors for an unspecified reason. npm is being very unhelpful here. What happens when you clone the repository and run node-gyp rebuild manually?

jdeut commented 10 years ago

Cloning the repository and run node-gyp rebuild worked like a charm :+1:

Thank you for taking the time!

Best regards