Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Can't install gosu gem on Ubuntu
- - By 13rady Date 2013-07-08 04:38
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-Linux

checking 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?
Parent - By SPK Date 2013-07-08 06:37
Install the package libx11-dev and try again.
Up Topic Gosu / Gosu Exchange / Can't install gosu gem on Ubuntu

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill