/System/Library/Frameworks
unless you have massively broken your installation of OS X :)brew install sdl2 libogg libvorbis
, and 2. you might be using RVM, which often breaks Gosu's compilation.
brew install sdl2 libogg libvorbis
.sudo gem install gosu
and gem install gosu
. And I keep getting the following error:Building native extensions. This could take a while...
ERROR: Error installing gosu:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/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/gosu/gosu/wiki/Getting-Started-on-OS-X
creating Makefile
make "DESTDIR="
compiling stb_vorbis.c
error: -fobjc-arc is not supported on platforms using the legacy runtime
make: *** [stb_vorbis.o] Error 1
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/gosu-0.10.8 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/gosu-0.10.8/ext/gosu/gem_make.out
sudo gem install gosu -v 0.10.5.pre0
Fetching: gosu-0.10.5.pre0.gem (100%)
Building native extensions. This could take a while...
Successfully installed gosu-0.10.5.pre0
Parsing documentation for gosu-0.10.5.pre0
Installing ri documentation for gosu-0.10.5.pre0
1 gem installed
brew install ruby
), or use rbenv
/ruby-install
(also in homebrew) to install a specific version of Ruby. Gosu should build without issues then (you won't need the sudo
before gem install
anymore, though).brew install libogg libvorbis
anymore. sdl2
is the only dependency.
sudo gem install --pre
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill