How to install Cucumber on Mac?

You want to install Cucumber on your mac machine. Or if you are having trouble installing Cucumber and waitr or selenium-webdriver then you are at the right place.

Following are the steps you need to follow in order to install cucumber with waitr/selenium-webdriver.

Step 1 – Install RVM and Ruby

curl -L | bash -s stable
source ~/.rvm/scripts/rvm 
$ rvm list known 
$rvm install 1.9.3 
# This installs Ruby 1.9.3

Step 2 – Install the required gems


gem update --system 
gem install rspec --no-ri --no-rdoc 
gem install watir-webdriver --no-ri --no-rdoc 
gem install cucumber --no-ri --no-rdoc


watir-webdriver requires selenium webdriver, so that one will be installed always. If you only want selenium-webdriver, just do gem install selenium-webdriver instead.

When creating an file inlcuding these commands, e.g: gem update –system

Note: You need to have Xcode and Git already installed.

For details on using Cucumber refer the following url:


One comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.