Installation under Windows

If you originally installed Ruby from the “one-click” installer mentioned in Appendix B, then you already have the Ruby/Gtk binding code in precompiled form, so what remains is to acquire the Gtk libraries. The files are available at http://www.ruby-lang.org/~slagell/gtk/. Read the recommendations there and select a download that is compatible with your version of Ruby and Ruby/Gtk.

The Gtk libraries usually come as a zipped set of .dll files. These need to be placed where the Ruby interpreter can find them. One safe location is in the same directory with the ruby.exe and rubyw.exe files, assuming that directory was made part of the system path during the original installation; in a Cygwin-based installation, for example, ...

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.