Installing Ruby

Before you can install Cucumber, you need to install Ruby. The code in this book was tested with ruby 1.9.3-p194, and we recommend you use this version or a more recent one. Each operating system has different ways to install Ruby. This section walks you through the most common installation procedures for OS X, Linux, and Windows.

OS X and Linux

First, you are going to need a C compiler such as GCC or Clang installed to build Ruby and gems that use C extensions, including Cucumber. On OS X you will have to install Xcode. Each Mac ships with a DVD that contains Xcode, and it can also be downloaded from http://developer.apple.com/xcode/.

Some Linux distributions come with GCC and/or Clang pre-installed, but many (such as Ubuntu) ...

Get The Cucumber Book 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.