-
Notifications
You must be signed in to change notification settings - Fork 210
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
尝试用Docker生成镜像,不知道要怎么加载声卡驱动 #143
Comments
目前 Docker image 还不支持操作宿主机的声卡 |
@guo-yu 使用 douban.fm提供的 Dockerfile ,生成的镜像不能正常使用 |
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/quantize.o |
对的,这个镜像目前只是把环境装了,并不能真正启动,原因就是没法找到宿主机的声卡。这个问题目前好像还得不到解决~ |
root@ecee768c0bda:/# cnpm install speaker --mpg123-backend=openal
make: Entering directory
/node_modules/speaker/build' CC(target) Release/obj.target/output/deps/mpg123/src/output/openal.o ../deps/mpg123/src/output/openal.c:13:24: fatal error: OpenAL/al.h: No such file or directory compilation terminated. make: *** [Release/obj.target/output/deps/mpg123/src/output/openal.o] Error 1 make: Leaving directory
/node_modules/speaker/build'gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/nodejs/lib/node_modules/cnpm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 4.0.9-boot2docker
gyp ERR! command "node" "/nodejs/lib/node_modules/cnpm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /node_modules/speaker
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Linux 4.0.9-boot2docker
npm ERR! argv "node" "/nodejs/lib/node_modules/cnpm/node_modules/.bin/npm" "--userconfig=/root/.cnpmrc" "--disturl=https://npm.taobao.org/mirrors/node" "--cache=/root/.cnpm" "--registry=https://registry.npm.taobao.org" "--node-gyp=/nodejs/lib/node_modules/cnpm/node_modules/node-gyp/bin/node-gyp.js" "install" "speaker" "--mpg123-backend=openal"
npm ERR! node v0.10.40
npm ERR! npm v2.14.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install:
node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
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! Please include the following file with any support request:
npm ERR! /npm-debug.log
root@ecee768c0bda:/# lspci -v
bash: lspci: command not found
root@ecee768c0bda:/# ls -a /usr/src/linux
ls: cannot access /usr/src/linux: No such file or directory
The text was updated successfully, but these errors were encountered: