gosu gem version changed. bundle is now installed correctly

On trying to install bundle returns the next error:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
~/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb 
The Gosu gem requires some libraries to be installed system-wide.
See the following site for a list:
https://github.com/jlnr/gosu/wiki/Getting-Started-on-Linux

creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling analysis.c
error: garbage collection is no longer supported
make: *** [analysis.o] Error 1

make failed, exit code 2

Gem files will remain installed in ~/.rvm/gems/ruby-2.1.1/gems/gosu-0.7.48 for inspection.
Results logged to ~/.rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-12/2.1.0-static/gosu-0.7.48/gem_make.out
An error occurred while installing gosu (0.7.48), and Bundler cannot continue.
Make sure that `gem install gosu -v '0.7.48'` succeeds before bundling.