Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Issue's installing Gosu on Linux mint
- - By kevinvhengst Date 2015-08-20 22:13
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-Linux

checking 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
Parent - - By jlnr (dev) Date 2015-08-20 22:24
Have you tried installing the packages from the wiki page that is linked in the error message? Since Linux Mint is based on Ubuntu (Wikipedia says so...), the package list for Ubuntu should do the trick.

If it does, feel free to edit the wiki page to clear things up for the next Linux Mint user :)
Parent - - By kevinvhengst Date 2015-08-21 08:01
Thanks for your comment. I did install the packages given in the error message. But the problemen still persists.

I've also tried re-installing ruby de Re-install all the packages again. But that also didnt do the trick.
Parent - - By jlnr (dev) Date 2015-08-21 08:15
Does installing mesa-common-dev help? Can you see the GL/gl.h header somewhere in /usr/include?
Parent - - By kevinvhengst Date 2015-08-21 09:37
mesa-common-dev is at the latest version. And i can see GL/gl.h in the /usr/include folder.
Parent - - By jlnr (dev) Date 2015-08-22 10:42 Edited 2015-08-22 11:19
It's also strange that Gosu cannot find the other libraries:

checking for TTF_RenderUTF8_Blended() in -lSDL2_ttf... no

Maybe I'll download an ISO image real quick and see if I can reproduce it. I've never seen Linux Mint in action, anyway!

Edit: I can't install the dependencies in the live CD because of package conflicts; libsndfile depends on libflac-dev, but libflac-dev depends on "libflac8 (= 1.3.0-2) but 1.3.0-2ubuntu0.14.04.1 is to be installed" etc etc... No idea, sorry.
Parent - By kevinvhengst Date 2015-08-22 20:50
Thanks for trying atleast. I'll try to figure something out. If I get it to work I'll post my solution/findings here.
Up Topic Gosu / Gosu Exchange / Issue's installing Gosu on Linux mint

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill