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!
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!