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

Rebuild issue on Ubuntu #383

Closed
ratpik opened this issue Jan 14, 2014 · 2 comments
Closed

Rebuild issue on Ubuntu #383

ratpik opened this issue Jan 14, 2014 · 2 comments

Comments

@ratpik
Copy link

ratpik commented Jan 14, 2014

node-gyp rebuild fails with below error.

gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/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.0-15-generic
gyp ERR! command "node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd ...
gyp ERR! node -v v0.10.15
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 

The actual error I face is when installing a node app. Relevant trace below. I'm running Ubuntu 13.10 on a 64 bit machine

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

npm ERR! System Linux 3.11.0-15-generic
npm ERR! command "node" "/usr/bin/npm" "install" "-g"
npm ERR! cwd ...
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.3.22
npm ERR! code ELIFECYCLE
@FelixSeidel
Copy link

same problem with Mac OS 10.9.1 (Darwin 13)

@ratpik
Copy link
Author

ratpik commented Jan 16, 2014

I was able to solve this by installing and defaulting to python2.6

On Ubuntu Saucy:
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python2.6
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.6 20
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 10

you can switch between 2.6 & 2.7 using:
sudo update-alternatives --config python

Btw I installed node using ppa:chris-lea/node.js

Got that from the issue #363

Thanks!

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