rob
June 21st, 2005, 09:22 PM
Getting the Ruby-SDL module to run under Windows can be tough. Here's how I did it.
For starters, I'm using the one-click Ruby installer.
Download the Ruby-SDL binary from this page:
http://www.kmc.gr.jp/~ohai/rubysdl_download.en.html
Once you've done that, you'll need to extract the lzh file. WinRAR won't work, so download:
http://gnuwin32.sourceforge.net/packages/lha.htm
And grab the lha.exe out of the bin dir and put it in your path. Run it from the command line, like this:
lha.exe x rubysdl-0.9.4-win32bin-pack.lzh
Once that's done, take the *.rb and sdl.so files and copy them to:
c:\ruby\lib\ruby\1.8
Then, take sdl.dll and copy it to:
c:\windows
Now it's installed.
This may not be the best way to do it, but its how I did it, and it seems to work. Hope someone finds this useful.
Rob
For starters, I'm using the one-click Ruby installer.
Download the Ruby-SDL binary from this page:
http://www.kmc.gr.jp/~ohai/rubysdl_download.en.html
Once you've done that, you'll need to extract the lzh file. WinRAR won't work, so download:
http://gnuwin32.sourceforge.net/packages/lha.htm
And grab the lha.exe out of the bin dir and put it in your path. Run it from the command line, like this:
lha.exe x rubysdl-0.9.4-win32bin-pack.lzh
Once that's done, take the *.rb and sdl.so files and copy them to:
c:\ruby\lib\ruby\1.8
Then, take sdl.dll and copy it to:
c:\windows
Now it's installed.
This may not be the best way to do it, but its how I did it, and it seems to work. Hope someone finds this useful.
Rob