我正在尝试运行soundCLI gem,但是它失败并显示:
/usr/lib/ruby/gems/1.9.1/gems/soundcli-0.0.5/lib/soundcli/player.rb: line 158
(null)-WARNING **:Command line `dbus-launch --autolaunch=57ae80824714b7b337db9bbc5115ac19 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
AL lib: alsa_open_playback: Could not open playback device 'default': No such file or directory
The autoaudiosink element is not working.
gstplaysink.c(1906): gen_audio_chain (): /GstPlayBin2:playbin20/GstPlaySink:playsink0
我是ruby的新手:),所以我将不胜感激。如果有帮助,我可以在Raspberry Pi上运行Debian。
最佳答案
我不是audio
组的成员,所以我运行了以下命令:sudo adduser <username> audio
,重新启动,瞧!
关于ruby - SoundCLI gem失败,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16251913/