Page 1 of 1

The Questions of Rubygame Install

PostPosted: Wed Nov 25, 2009 5:11 am
by JackyCheung
Now I'm use Ruby in my Windows system.
I want to use Rubygame.
so I use gem install like this
gem install rubygame

when the finish the installed,
make action flowing like this

D:\downloads>irb
irb(main):001:0> require "rubygame"
LoadError: Could not load SDL.
from D:/Ruby/lib/ruby/gems/1.9.1/gems/nice-ffi-0.2/lib/nice-ffi/library.
rb:98:in `load_library'
from D:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-sdl-ffi-0.2/lib/ruby-sdl-ffi/
sdl.rb:47:in `<module:SDL>'
from D:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-sdl-ffi-0.2/lib/ruby-sdl-ffi/
sdl.rb:34:in `<top (required)>'
from D:/Ruby/lib/ruby/gems/1.9.1/gems/rubygame-2.6.2/lib/rubygame/main.r
b:22:in `require'
from D:/Ruby/lib/ruby/gems/1.9.1/gems/rubygame-2.6.2/lib/rubygame/main.r
b:22:in `<top (required)>'
from D:/Ruby/lib/ruby/gems/1.9.1/gems/rubygame-2.6.2/lib/rubygame.rb:44:
in `require'
from D:/Ruby/lib/ruby/gems/1.9.1/gems/rubygame-2.6.2/lib/rubygame.rb:44:
in `block in <top (required)>'
from D:/Ruby/lib/ruby/gems/1.9.1/gems/rubygame-2.6.2/lib/rubygame.rb:29:
in `each'
from D:/Ruby/lib/ruby/gems/1.9.1/gems/rubygame-2.6.2/lib/rubygame.rb:29:
in `<top (required)>'
from (irb):1:in `require'
from (irb):1
from D:/Ruby/bin/irb:12:in `<main>'
irb(main):002:0> include Rubygame
NameError: uninitialized constant Rubygame
from (irb):2
from D:/Ruby/bin/irb:12:in `<main>'
irb(main):003:0> include Rubygame::Events
NameError: uninitialized constant Rubygame
from (irb):3
from D:/Ruby/bin/irb:12:in `<main>'
irb(main):004:0> exit

Then I look the Windows Installation Guide of Rubygame wiki page.
and I'm downloaded the SDL SDL_image SDL_mixer SDL_ttf SDL_gfx zip file.

Now , where to Extract these DLL files ?

Re: The Questions of Rubygame Install

PostPosted: Thu Nov 26, 2009 12:01 am
by jacius
The DLL files must go into "C:\windows\system32\", as the instructions say. ;)