guo-yu / douban.fm

a tiny and smart cli player of douban.fm in Node.js
MIT License
1.6k stars 210 forks source link

openSUSE13.1无法安装 #31

Open ghost opened 10 years ago

ghost commented 10 years ago

speaker@0.0.10 install /home/rainsun/douban.fm/node_modules/player/node_modules/speaker node-gyp rebuild

lame@1.0.3 install /home/rainsun/douban.fm/node_modules/player/node_modules/lame node-gyp rebuild

npm http 200 https://registry.npmjs.org/punycode/-/punycode-1.2.3.tgz gyp: /usr/share/node/common.gypi not found (cwd: /home/rainsun/douban.fm/node_modules/player/node_modules/speaker) while reading includes of binding.gyp while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/lib64/node_modules/npm/node_modules/node-gyp/lib/configure.js:417:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:784:12) gyp ERR! System Linux 3.11.6-4-desktop gyp ERR! command "node" "/usr/lib64/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/rainsun/douban.fm/node_modules/player/node_modules/speaker gyp ERR! node -v v0.10.5 gyp ERR! node-gyp -v v0.9.5 gyp ERR! not ok gyp: /usr/share/node/common.gypi not found (cwd: /home/rainsun/douban.fm/node_modules/player/node_modules/lame) while reading includes of binding.gyp while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/lib64/node_modules/npm/node_modules/node-gyp/lib/configure.js:417:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:784:12) gyp ERR! System Linux 3.11.6-4-desktop gyp ERR! command "node" "/usr/lib64/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/rainsun/douban.fm/node_modules/player/node_modules/lame gyp ERR! node -v v0.10.5 gyp ERR! node-gyp -v v0.9.5 gyp ERR! not ok npm ERR! speaker@0.0.10 install: node-gyp rebuild npm ERR! sh "-c" "node-gyp rebuild" failed with 1 npm ERR! npm ERR! Failed at the speaker@0.0.10 install script. npm ERR! This is most likely a problem with the speaker 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 speaker npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.11.6-4-desktop npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" npm ERR! cwd /home/rainsun/douban.fm npm ERR! node -v v0.10.5 npm ERR! npm -v 1.2.18 npm ERR! code ELIFECYCLE npm http 200 https://registry.npmjs.org/delayed-stream/0.0.5 npm http GET https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz npm WARN package.json punycode@1.2.3 No README.md file found! npm http 200 https://registry.npmjs.org/hoek npm http GET https://registry.npmjs.org/hoek/-/hoek-0.9.1.tgz npm http 200 https://registry.npmjs.org/boom/-/boom-0.4.2.tgz npm http 200 https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz npm http 200 https://registry.npmjs.org/hoek/-/hoek-0.9.1.tgz npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/rainsun/douban.fm/npm-debug.log npm ERR! not ok code 0

guo-yu commented 10 years ago

build error,参考一下这个 issue 看看有没有解决办法: https://github.com/turingou/douban.fm/issues/10

yofine commented 10 years ago

你找找openSUSE下有没有类似 alsa-lib-devel 的包

fengmk2 commented 10 years ago

还是 node-gyp 下载 node.tgz 不完整导致的

gyp: /usr/share/node/common.gypi not found (cwd: /home/rainsun/douban.fm/node_modules/player/node_modules/speaker) while reading includes of binding.gyp while trying to load binding.gyp
gyp ERR! configure error 

https://github.com/TooTallNate/node-gyp/pull/389

推荐使用国内源再试试

$ [sudo] npm install douban.fm -g --registry=http://r.cnpmjs.org --disturl=http://dist.u.qiniudn.com
richardkwo commented 10 years ago

sudo zypper in alsa-devel

Resolved!