Star Ruby Ruby extension library for creating 2D games

Run Star Ruby on MacOSX

Star Ruby supports Mac OS X since version 0.1.13. We tested it on Mac OS X 10.4 (Tiger).

Screen shot

You need to take several steps in order to install Star Ruby on your MacOSX. This is a rough introduction on how to run Star Ruby on Mac OS X.

Install XCodeTools

Please install XCodeTools from the CD-ROM attached to Mac.

Install MacPorts

Please install MacPorts.

Install libraries.

By using MacPorts we installed just now, we install libraries we need.

$ sudo port install ruby
$ sudo port install libsdl
$ sudo port install libsdl_mixer
$ sudo port install libsdl_ttf
$ sudo port install libpng
$ sudo port install freetype
$ sudo port install fontconfig
$ sudo port install libogg
$ sudo port install libvorbis

Set up Environment Variables

This is how to set up Enviroment Variables.

Write a script below in ~/.bash_profile (If there isn't, make it.)

export DYLD_LIBRARY_PATH=
export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib
export DYLD_SHARED_REGION=avoid

Open the terminal again or use source command to validate the update of .bash_profile.

$ source ~/.bash_profile

Build RSDL

Please build RSDL (Customed ruby for Mac). Star Ruby scripts have to be run from RSDL.

Build Star Ruby

Get source code and install. (You might need Subversion Client)

$ ruby extconf.rb
$ make
$ sudo make install
© Copyright 2010 Hajime Hoshi