Slackware, ruby, rubygems and rubygames.
I try to do a clean install of rubygame on Slackware 12.1.
First, how do i install rubygems ? Unzipping the archive and run ruby setup.rb is enough ? Maybe i have to specify some path ? |
Quote:
|
Ok, done !
Now i typed : gem install rake then : gem install rubygame Building native extensions. This could take a while... ERROR: Error installing rubygame: ERROR: Failed to build gem native extension. rake RUBYARCHDIR=/usr/lib/ruby/gems/1.8/gems/rubygame-2.3.0/lib RUBYLIBDIR=/usr/lib/ruby/gems/1.8/gems/rubygame-2.3.0/lib Dans le fichier inclus à partir de ext/rubygame/rubygame_gfx.c:23: ext/rubygame/rubygame_gfx.h:25:31: erreur: SDL_gfxPrimitives.h : Aucun fichier ou répertoire de ce type ext/rubygame/rubygame_gfx.h:26:26: erreur: SDL_rotozoom.h : Aucun fichier ou répertoire de ce type ext/rubygame/rubygame_gfx.c: In function ‘rbgm_transform_rotozoom’: ext/rubygame/rubygame_gfx.c:639: attention : assignment makes pointer from integer without a cast ext/rubygame/rubygame_gfx.c: In function ‘rbgm_transform_zoom’: ext/rubygame/rubygame_gfx.c:782: attention : assignment makes pointer from integer without a cast ext/rubygame/rubygame_gfx.c: In function ‘rbgm_transform_zoom_to’: ext/rubygame/rubygame_gfx.c:815: attention : assignment makes pointer from integer without a cast rake aborted! Command failed. Aborting. /usr/lib/ruby/gems/1.8/gems/rubygame-2.3.0/Rakefile:22:in `try_shell' (See full trace by running task with --trace) (in /usr/lib/ruby/gems/1.8/gems/rubygame-2.3.0) Compiling rubygame/rubygame_main.c Compiling rubygame/rubygame_shared.c Compiling rubygame/rubygame_event.c Compiling rubygame/rubygame_gl.c Compiling rubygame/rubygame_joystick.c Compiling rubygame/rubygame_screen.c Compiling rubygame/rubygame_surface.c Compiling rubygame/rubygame_time.c Linking compiled files to create rubygame/rubygame_core.so Compiling rubygame/rubygame_gfx.c Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/rubygame-2.3.0 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/rubygame-2.3.0/gem_make.out bash-3.1# When i launch this : 1 #! /usr/bin/ruby -w 2 3 require ‘rubygame‘ 4 5 Rubygame.init 6 screen = Rubygame::Screen.new [640, 400] 7 loop {} 8 I got this : bash-3.1$ ruby rubytest.rb rubytest.rb:3: syntax error, unexpected tIDENTIFIER, expecting $end 3 require ‘rubygame‘ ^ bash-3.1$ What have i done wrong ? |
Mmm, no idea. What does that:
Quote:
|
I need glasses...
cat /usr/lib/ruby/gems/1.8/gems/rubygame-2.3.0/gem_make.out rake RUBYARCHDIR=/usr/lib/ruby/gems/1.8/gems/rubygame-2.3.0/lib RUBYLIBDIR=/usr/lib/ruby/gems/1.8/gems/rubygame-2.3.0/lib Dans le fichier inclus à partir de ext/rubygame/rubygame_gfx.c:23: ext/rubygame/rubygame_gfx.h:25:31: erreur: SDL_gfxPrimitives.h : Aucun fichier ou répertoire de ce type ext/rubygame/rubygame_gfx.h:26:26: erreur: SDL_rotozoom.h : Aucun fichier ou répertoire de ce type ext/rubygame/rubygame_gfx.c: In function ‘rbgm_transform_rotozoom’: ext/rubygame/rubygame_gfx.c:639: attention : assignment makes pointer from integer without a cast ext/rubygame/rubygame_gfx.c: In function ‘rbgm_transform_zoom’: ext/rubygame/rubygame_gfx.c:782: attention : assignment makes pointer from integer without a cast ext/rubygame/rubygame_gfx.c: In function ‘rbgm_transform_zoom_to’: ext/rubygame/rubygame_gfx.c:815: attention : assignment makes pointer from integer without a cast rake aborted! Command failed. Aborting. /usr/lib/ruby/gems/1.8/gems/rubygame-2.3.0/Rakefile:22:in `try_shell' (See full trace by running task with --trace) (in /usr/lib/ruby/gems/1.8/gems/rubygame-2.3.0) Compiling rubygame/rubygame_main.c Compiling rubygame/rubygame_shared.c Compiling rubygame/rubygame_event.c Compiling rubygame/rubygame_gl.c Compiling rubygame/rubygame_joystick.c Compiling rubygame/rubygame_screen.c Compiling rubygame/rubygame_surface.c Compiling rubygame/rubygame_time.c Linking compiled files to create rubygame/rubygame_core.so Compiling rubygame/rubygame_gfx.c |
Got SDL error :
ext/rubygame/rubygame_gfx.h:25:31: erreur: SDL_gfxPrimitives.h : Aucun fichier ou répertoire de ce type Got SlackBuild : http://slackbuilds.org/repository/12...aries/SDL_gfx/ Got build : installpkg /tmp/SDL_gfx-2.0.17-i486-1_SBo.tgz Got rubygame : bash-3.1# gem install rubygame Building native extensions. This could take a while... Successfully installed rubygame-2.3.0 1 gem installed Installing ri documentation for rubygame-2.3.0... Installing RDoc documentation for rubygame-2.3.0... bash-3.1# Got slack. Thanks. |
All times are GMT -5. The time now is 03:17 PM. |