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

node-gyp build broken on fedora 20 #14

Closed
ApelSYN opened this issue Dec 23, 2013 · 2 comments
Closed

node-gyp build broken on fedora 20 #14

ApelSYN opened this issue Dec 23, 2013 · 2 comments
Assignees

Comments

@ApelSYN
Copy link

ApelSYN commented Dec 23, 2013

[root@it-cherniy_oleg 3]# npm install -g cocaine
npm http GET https://registry.npmjs.org/cocaine
npm http 304 https://registry.npmjs.org/cocaine
npm http GET https://registry.npmjs.org/bindings/-/bindings-1.0.0.tgz
npm http GET https://registry.npmjs.org/jampack/0.0.5
npm http GET https://registry.npmjs.org/msgpack/-/msgpack-0.1.11.tgz
npm http GET https://registry.npmjs.org/optimist/-/optimist-0.4.0.tgz
npm http GET https://registry.npmjs.org/q/-/q-0.9.6.tgz
npm http 304 https://registry.npmjs.org/jampack/0.0.5
npm http 200 https://registry.npmjs.org/bindings/-/bindings-1.0.0.tgz
npm http 200 https://registry.npmjs.org/msgpack/-/msgpack-0.1.11.tgz
npm http 200 https://registry.npmjs.org/optimist/-/optimist-0.4.0.tgz
npm http 200 https://registry.npmjs.org/q/-/q-0.9.6.tgz
npm http GET https://registry.npmjs.org/wordwrap/0.0.2
npm http GET https://github.com/godsflaw/nodeunit/archive/master.tar.gz
npm http 304 https://registry.npmjs.org/wordwrap/0.0.2
npm http 200 https://github.com/godsflaw/nodeunit/archive/master.tar.gz
npm WARN excluding symbolic link deps/ejs/node_modules/.bin/expresso -> ../expresso/bin/expresso
npm WARN excluding symbolic link deps/ejs/node_modules/.bin/node-jscoverage -> ../expresso/deps/jscoverage/node-jscoverage
npm WARN excluding symbolic link node_modules/.bin/tap -> ../tap/bin/tap.js
npm WARN excluding symbolic link node_modules/.bin/uglifyjs -> ../uglify-js/bin/uglifyjs
npm WARN excluding symbolic link node_modules/tap/node_modules/.bin/nopt -> ../nopt/bin/nopt.js
npm WARN excluding symbolic link node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/node_modules/.bin/uglifyjs -> ../uglify-js/bin/uglifyjs
npm http GET https://registry.npmjs.org/tap/-/tap-0.4.4.tgz
npm http 200 https://registry.npmjs.org/tap/-/tap-0.4.4.tgz
npm http GET https://registry.npmjs.org/slide/1.1.5
npm http GET https://registry.npmjs.org/runforcover/0.0.2
npm http GET https://registry.npmjs.org/nopt/2.1.2
npm http GET https://registry.npmjs.org/glob/-/glob-3.2.6.tgz
npm http GET https://registry.npmjs.org/mkdirp/0.3.5
npm http GET https://registry.npmjs.org/difflet/0.2.6
npm http GET https://registry.npmjs.org/buffer-equal/0.0.0
npm http GET https://registry.npmjs.org/deep-equal/0.0.0
npm http 304 https://registry.npmjs.org/slide/1.1.5
npm http 304 https://registry.npmjs.org/nopt/2.1.2
npm http 304 https://registry.npmjs.org/runforcover/0.0.2
npm http 200 https://registry.npmjs.org/glob/-/glob-3.2.6.tgz
npm http 304 https://registry.npmjs.org/difflet/0.2.6
npm http 304 https://registry.npmjs.org/mkdirp/0.3.5
npm http 304 https://registry.npmjs.org/buffer-equal/0.0.0
npm http 304 https://registry.npmjs.org/deep-equal/0.0.0
npm http GET https://registry.npmjs.org/bunker/0.1.2
npm http GET https://registry.npmjs.org/abbrev/1.0.4
npm http GET https://registry.npmjs.org/traverse/-/traverse-0.6.3.tgz
npm http GET https://registry.npmjs.org/charm/0.1.2
npm http GET https://registry.npmjs.org/deep-is/0.1.2
npm http GET https://registry.npmjs.org/minimatch/0.2.12
npm http GET https://registry.npmjs.org/inherits/2.0.1
npm http 304 https://registry.npmjs.org/bunker/0.1.2
npm http 304 https://registry.npmjs.org/abbrev/1.0.4
npm http 304 https://registry.npmjs.org/deep-is/0.1.2
npm http 304 https://registry.npmjs.org/charm/0.1.2
npm http 200 https://registry.npmjs.org/traverse/-/traverse-0.6.3.tgz
npm http 304 https://registry.npmjs.org/minimatch/0.2.12
npm http GET https://registry.npmjs.org/burrito/0.2.12
npm http 304 https://registry.npmjs.org/inherits/2.0.1
npm http GET https://registry.npmjs.org/lru-cache/2.3.1
npm http GET https://registry.npmjs.org/sigmund/1.0.0
npm http 304 https://registry.npmjs.org/burrito/0.2.12
npm http 304 https://registry.npmjs.org/lru-cache/2.3.1
npm http 304 https://registry.npmjs.org/sigmund/1.0.0
npm http GET https://registry.npmjs.org/traverse/-/traverse-0.5.2.tgz
npm http GET https://registry.npmjs.org/uglify-js/1.1.1
npm http 200 https://registry.npmjs.org/traverse/-/traverse-0.5.2.tgz
npm http 304 https://registry.npmjs.org/uglify-js/1.1.1

[email protected] install /usr/lib/node_modules/cocaine/node_modules/msgpack
node-gyp rebuild

Traceback (most recent call last):
File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in
sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.11.10-301.fc20.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/cocaine/node_modules/msgpack
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the msgpack 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 msgpack
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.11.10-301.fc20.x86_64
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "cocaine"
npm ERR! cwd /root/3
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/3/npm-debug.log
npm ERR! not ok code 0

About sysstem:
gcc версия 4.8.2 20131212 (Red Hat 4.8.2-7) (GCC)

[root@it-cherniy_oleg 3]# uname -a
Linux it-cherniy_oleg 3.11.10-301.fc20.x86_64 #1 SMP Thu Dec 5 14:01:17 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

[root@it-cherniy_oleg 3]# python --version -v
Python 2.7.5

@ghost ghost assigned diunko Dec 23, 2013
@diunko
Copy link
Member

diunko commented Dec 24, 2013

According to nodejs/node-gyp#363, the solution to this build error would be to not use node and npm from system's package manager. Would you try it again using some node version management script, like n or nvm?

@diunko
Copy link
Member

diunko commented Jul 3, 2014

should be fixed by now in 0.4 branch

@diunko diunko closed this as completed Jul 3, 2014
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

2 participants