Skip to content

Setting Up a Linux Build Environment

lylejohnson edited this page Sep 13, 2010 · 16 revisions

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.

Install Ruby

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.

Install FOX Dependencies

sudo aptitude install zlib1g-dev libpng12-dev libjpeg62-dev libtiff4-dev

Install FOX and its dependencies

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

Install FXScintilla

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

Install G++

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++
Clone this wiki locally