我正在尝试运行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
我是红宝石的新手:),所以我很感激任何帮助。如果有帮助的话,我在Raspberry Pi上运行Debian。
答案 0 :(得分:0)
我不是audio
组的成员,所以我运行了以下命令:sudo adduser <username> audio
,重新启动并vo!