arch 下安装不成功。。
Closed this issue · 3 comments
错误信息
make: Entering directory /usr/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker/build' CC(target) Release/obj.target/output/deps/mpg123/src/output/alsa.o ../deps/mpg123/src/output/alsa.c:19:28: fatal error: alsa/asoundlib.h: No such file or directory #include <alsa/asoundlib.h> ^ compilation terminated. make: *** [Release/obj.target/output/deps/mpg123/src/output/alsa.o] Error 1 make: Leaving directory
/usr/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker/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.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.10.2-1-ARCH
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/douban.fm/node_modules/player/node_modules/speaker
gyp ERR! node -v v0.10.17
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
gyp ERR! build error
gyp ERR! stack Error: You must run node-gyp configure
first!
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:44:20
gyp ERR! stack at fs.js:207:20
gyp ERR! stack at OpenReq.Req.done (/usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:135:5)
gyp ERR! stack at OpenReq.done (/usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:64:22)
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System Linux 3.10.2-1-ARCH
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/douban.fm/node_modules/player/node_modules/lame
gyp ERR! node -v v0.10.17
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/lib/node_modules/douban.fm/node_modules/player/node_modules/lame/build'
npm ERR! error rolling back player@0.0.9 { [Error: ENOTEMPTY, rmdir '/usr/lib/node_modules/douban.fm/node_modules/player/node_modules/lame/build']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/usr/lib/node_modules/douban.fm/node_modules/player/node_modules/lame/build' }
npm ERR! weird error 1
npm ERR! not ok code 0
player 模块安装失败,在linux依赖这个东西 alsa
确认安装了这个应该就可以正常安装了。。
ubuntu下遇到同样问题,安装下libasound2-dev这个( sudo apt-get install libasound2-dev),TooTallNate/node-speaker#1
看来我还是要把这些依赖都在文档中说明一下