So I'm new to this whole linux and Ruby thing. I'm trying to learn Ruby while building games.
When I try to install Gosu I encounter a problem:
I Run: sudo
gem install gosu, and i get back the following error:
/usr/bin/ruby1.9.1 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 -lSDL2_ttf... no
checking for main() in -lopenal... no
creating Makefile
make
compiling gosu_wrap.cxx
In file included from /usr/include/ruby-1.9.1/ruby.h:32:0,
from gosu_wrap.cxx:876:
gosu_wrap.cxx: In function ‘void Gosu::loadBitmap(Gosu::Bitmap&, VALUE)’:
/usr/include/ruby-1.9.1/ruby/ruby.h:675:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
RSTRING(str)->as.heap.len)
^
gosu_wrap.cxx:2288:56: note: in expansion of macro ‘RSTRING_LEN’
else if (width * height * 4 * sizeof(float) == RSTRING_LEN(blob))
^
gosu_wrap.cxx: In member function ‘virtual void SwigDirector_Window::update()’:
gosu_wrap.cxx:3064:9: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
VALUE result;
^
gosu_wrap.cxx: In member function ‘virtual void SwigDirector_Window::draw()’:
gosu_wrap.cxx:3071:9: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
VALUE result;
^
gosu_wrap.cxx: In member function ‘virtual void SwigDirector_Window::loseFocus()’:
gosu_wrap.cxx:3108:9: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
VALUE result;
^
gosu_wrap.cxx: In member function ‘virtual void SwigDirector_Window::releaseMemory()’:
gosu_wrap.cxx:3115:9: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
VALUE result;
^
gosu_wrap.cxx: In member function ‘virtual void SwigDirector_Window::buttonDown(Gosu::Button)’:
gosu_wrap.cxx:3123:9: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
VALUE result;
^
gosu_wrap.cxx: In member function ‘virtual void SwigDirector_Window::buttonUp(Gosu::Button)’:
gosu_wrap.cxx:3137:9: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
VALUE result;
^
compiling TimingUnix.cpp
compiling Graphics-TexChunk.cpp
In file included from ../../src/Graphics/TexChunk.hpp:7:0,
from ../../src/Graphics/TexChunk.cpp:1,
from Graphics-TexChunk.cpp:1:
../../src/Graphics/Common.hpp:22:19: fatal error: GL/gl.h: No such file or directory
#include <GL/gl.h>
^
compilation terminated.
make: *** [Graphics-TexChunk.o] Error 1
Does anyone know how to fix this issue?
Kind regards,
Kevin