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 get.rvm.io | 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 install_gems.sh file inlcuding these commands, e.g: gem update –system
Note: You need to have Xcode and Git already installed.