-
Notifications
You must be signed in to change notification settings - Fork 5
Setting Up a Linux Build Environment
If you’d like to be able to build FXRuby from source on Linux, you’re going to need to set up a build environment. This page describes how to set up an FXRuby build environment under Ubuntu Linux 9.04. If you’re working with a different Linux distribution, some of the instructions will obviously be different.
So, you’re going to need a Ruby installation, and it’s not included in the stock Ubuntu distribution.To keep things simple, however, you can just install the ruby-full package for Ubuntu by typing
sudo aptitude install ruby-full
If you want or need to build Ruby from its source code, please see the Ruby downloads page.
sudo aptitude install zlib1g-dev libpng12-dev libjpeg62-dev libtiff4-dev
FXRuby is based on the FOX toolkit, and so we’re going to need to install FOX. Luckily, there’s a package for that too:
sudo aptitude install libfox-1.6-dev
This step is optional, but if you want to be able to use the FXScintilla widget in your FXRuby programs, you’ll need to get the FXScintilla library installed.
sudo aptitude install libfxscintilla-dev
To my surprise, the C++ compiler wasn’t included in the stock Ubuntu distribution (only the C compiler). You’re going to need to install that too:
sudo aptitude install g++