Not logged inGosu Forums
Forum back to Help Search Register Login
Up Topic Gosu / Gosu Exchange / Basic GOSU Installation dont works
- - By BinarySoul Date 2014-07-12 23:43
Hello together,

i was trying to install GOSU today, to make my first steps.
Sadly the installation will stop on a certain point without a reason that i can handle.
hereĀ“s what i did:

sudo yum groupinstall --assumeyes "Development Tools" #everything works fine!
sudo yum install --assumeyes freeglut-devel freeimage-devel mesa-libGL-devel openal-devel pango-devel SDL_ttf-devel libsndfile-devel libXinerama-devel libvorbis-devel  #also fine!
ruby, ruby-devel and gems are already installed @ version 2.0.0p353

then: sudo gem install gosu #brings me to:

Building native extensions.  This could take a while...
ERROR:  Error installing gosu:
  ERROR: Failed to build gem native extension.

    /usr/bin/ruby extconf.rb
The Gosu gem requires some libraries to be installed system-wide.
See the following site for a list:

checking for TTF_RenderUTF8_Blended() in -lSDL_ttf... yes
checking for SDL_ttf.h... yes
checking for FreeImage_ConvertFromRawBits() in -lfreeimage... yes
checking for FreeImage.h... yes
checking for main() in -lopenal... yes
checking for AL/al.h... yes
creating Makefile

make "DESTDIR="
g++ -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I../ -I../GosuImpl -DHAVE_SDL_TTF_H -DHAVE_FREEIMAGE_H -DHAVE_AL_AL_H  -D_FILE_OFFSET_BITS=64  -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=i686 -mtune=atom -fasynchronous-unwind-tables -fPIC -DGOSU_DEPRECATED= -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -pthread -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2   -I/usr/include/libdrm  -I/usr/include/AL  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=i686 -mtune=atom -fasynchronous-unwind-tables -m32 -o RubyGosu_wrap.o -c RubyGosu_wrap.cxx
make: g++: Kommando nicht gefunden
make: *** [RubyGosu_wrap.o] Fehler 127

Gem files will remain installed in /usr/local/share/gems/gems/gosu-0.7.50 for inspection.
Results logged to /usr/local/share/gems/gems/gosu-0.7.50/linux/gem_make.out

what shall i do?
Parent - - By jlnr (dev) Date 2014-07-13 10:34
It looks like you are missing the C++ compiler g++. I am not sure how your distribution works, but can you just enter "g++" in a terminal and it will tell you that it is missing, and which package to install?
Parent - - By BinarySoul Date 2014-07-13 12:22
thats it, many thanks!

for the creator of the homepage here, in Fedora 20, you need to install gcc-c++ seperately with this command:

sudo yum install gcc-c++

thanks for the help
Parent - By jlnr (dev) Date 2014-07-14 18:26
Thanks! I've updated the wiki.
Up Topic Gosu / Gosu Exchange / Basic GOSU Installation dont works

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill