Forums Archived

The forums are being archived. See this topic for more information.

The Questions of Rubygame Install

Discussion about anything related to Rubygame

The Questions of Rubygame Install

Postby JackyCheung » Wed Nov 25, 2009 5:11 am

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 ?
JackyCheung
 
Posts: 1
Joined: Wed Nov 25, 2009 5:00 am

Re: The Questions of Rubygame Install

Postby jacius » Thu Nov 26, 2009 12:01 am

The DLL files must go into "C:\windows\system32\", as the instructions say. ;)
User avatar
jacius
Site Admin
 
Posts: 131
Joined: Fri Feb 06, 2009 11:13 pm


Return to Rubygame (General)

Who is online

Users browsing this forum: No registered users and 1 guest

cron