Installation under Unix

A working Ruby/Gtk installation requires the Ruby interpreter on one side, Gtk graphics libraries on the other, and some binding code that makes them work together. Strictly speaking, that binding code is what we mean when we talk about Ruby/Gtk.

Most Linux and BSD distributions now come with the Gtk libraries preinstalled, so we will assume you already have them. Also, you must have taken care of installing the Ruby interpreter a while ago (otherwise, reading the rest of the book up to now must have been a rather detached experience for you). So Ruby/Gtk is the piece you need.

First, acquire Ruby/Gtk from the Web; you can download it from http://www.ruby-lang.org/~slagell/gtk/. Once you have it, unzip and untar the package, ...

Get Sams Teach Yourself Ruby in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.