PDA

View Full Version : Installing Ruby-SDL on Windows


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

bluetechnx
June 21st, 2005, 11:16 PM
I use IZArc for those interested...it can decompress .lhz and a ton of others just fine...

rob
June 22nd, 2005, 01:00 AM
IZArc looks neat. Did it handle this LZH file ok though? I got the GNU version because WinRAR couldn't handle it, I dunno if they use the same library or not.

bluetechnx
June 22nd, 2005, 02:16 PM
yea, I had no issues

steve_d555
July 19th, 2005, 06:03 PM
Just because I love WinRar and either it can't handle lhz properly or the file is just wierd I posted a .rar version of 0.9.4 for Windows. Im sure everyone on Linux has lha installed.

Linky (http://www.steviedizzle.com/linux/rubysdl-0.9.4-win32bin-ruby18.rar)