Hey guys, I've just discovered Gosu recently and am trying to install it on my Ubuntu machine. However, when I try to
gem install gosu
, I get a compilation error. This is the log file:
/home/me/.rvm/rubies/ruby-1.9.3-p448/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-Linuxchecking for TTF_RenderUTF8_Blended() in -lSDL_ttf... no
checking for FreeImage_ConvertFromRawBits() in -lfreeimage... no
checking for main() in -lopenal... no
creating Makefile
make
compiling RubyGosu_wrap.cxx
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from ../Gosu/Gosu.hpp:21:0,
from RubyGosu_wrap.cxx:2227:
../Gosu/Input.hpp:20:22: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [RubyGosu_wrap.o] Error 1
I'm not sure what to do here, and google isn't helping. Any thoughts?