PDA

View Full Version : Installing RubySDL on Fedora Core 5


rob
May 7th, 2006, 09:24 PM
I've put together a way to install RubySDL on FC5. Soon I will make an RPM, but for now, here's how:

First of all, make sure Ruby, RDoc, etc. are installed (run as root):

yum install ruby ruby-libs ruby-devel ruby-irb ruby-rdoc
Then, make sure all the necessary SDL parts are installed (run as root):

yum install SDL SDL-devel SDL_image SDL_image-devel SDL_net SDL_net-devel SDL_mixer SDL_gfx SDL_gfx-devel SDL_ttf SDL_ttf-devel

We have to download and install SGE, an extension to SDL:


cd /usr/src
wget http://www.etek.chalmers.se/~e8cal1/sge/files/sge030809.tar.gz
tar xfz sge030809.tar.gz
rm -f sge030809.tar.gz
cd sge030809


You have to edit Makefile.conf in the sge030809 folder. Just type:

nano Makefile.conf

Make sure the top part looks like this:


# Configure Makefile for the SGE library

# Comment/uncomment the following line to disable/enable build options
# (See README for more info)
C_COMP = y
USE_FT = n
USE_IMG = y
#QUIET = y


Save the file, exit nano (or your editor of choice) and then run:

make install

It should compile cleanly. If it doesn't, reply to this thread and let me know. This is the most fragile part of this install proceedure.

Now that Ruby, SGE and SDL are installed, its time to download RubySDL and unpack it:


cd /usr/src
wget http://www.kmc.gr.jp/~ohai/rubysdl/rubysdl-1.1.0.tar.gz
tar xfz rubysdl-1.1.0.tar.gz
rm -f rubysdl-1.1.0.tar.gz
cd rubysdl-1.1.0


You can install RubySDL with:


ruby extconf.rb
make install


If all went well, RubySDL should be installed!

steve_d555
May 8th, 2006, 02:58 PM
There are also a couple patches which need/should be applied because the upstream maintainer is no longer around:
Patch for FreeType (http://bugs.gentoo.org/attachment.cgi?id=51584)
Patch for cMap (http://bugs.gentoo.org/attachment.cgi?id=78885)

The second one is optional, but it seems the first must be applied for proper building (if USE_FT is set to "yes").

steve_d555
May 26th, 2006, 09:22 PM
I finally got around to making an RPM. I used gentoo's ebuild utility to generate it from an ebuild so if you (or someone) could test it on Fedora that would be great (the package contains Freetype support).

Download from http://www.steviedizzle.com/linux/sge-030809-r0.i386.rpm