Build error
Building native extensions. This could take a while... ERROR: Error installing audio-playback: ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.4.0/gems/ruby-audio-1.6.1/ext/rubyaudio_ext
/usr/bin/ruby2.4 -r ./siteconf20180526-6666-7qbskl.rb extconf.rb checking for sndfile.h in /opt/local/include,/usr/local/include,C:/Program Files (x86)/Mega-Nerd/libsndfile/include,C:/Program Files/Mega-Nerd/libsndfile/include... yes checking for sf_open() in -lsndfile-1... no checking for sf_open() in -lsndfile... yes checking for SF_FORMAT_OGG in sndfile.h... yes creating Makefile
current directory: /var/lib/gems/2.4.0/gems/ruby-audio-1.6.1/ext/rubyaudio_ext make "DESTDIR=" clean
current directory: /var/lib/gems/2.4.0/gems/ruby-audio-1.6.1/ext/rubyaudio_ext make "DESTDIR=" compiling ra_buffer.c compiling ra_sound.c ra_sound.c: In function ‘ra_sound_init’: ra_sound.c:155:5: error: format not a string literal and no format arguments [-Werror=format-security] if(snd->snd == NULL) rb_raise(eRubyAudioError, sf_strerror(snd->snd)); ^ cc1: some warnings being treated as errors Makefile:242: recipe for target 'ra_sound.o' failed make: *** [ra_sound.o] Error 1
make failed, exit code 2
Experiencing same problem trying to install gem on Raspberry Pi W
gem install ruby-audio -- --with-cflags=-Wno-error=format-security
fixed the problem for me