Install Ruby Cucumber

On Linux

Install RVM

(assuming CentOS, if you are using Ubuntu, use “apt-get install” instead of “yum install” )

$ sudo yum install gcc

$ sudo yum install zlib-devel openssl-devel perl

$ sudo yum install git

Now install and check RVM: (assuming your ‘curl’ is supporting HTTPS)

$ bash -s stable < <(curl -s -k https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

$ echo ‘[[ -s “$HOME/.rvm/scripts/rvm” ]] && . “$HOME/.rvm/scripts/rvm” # Load RVM function’ >> ~/.bash_profile

$ source $HOME/.bash_profile

$ type rvm | head -1

Now install ruby with a specific version:

$ rvm install 1.9.3

$ rvm –default use 1.9.3

.

Install Cucumber

$ gem install rake bundler rspec cucumber

$ gem install capybara rest-client httparty ruby-oci8

.

Check Cucumber

$ gem –version

$ cucumber –version

.

On Windows

Install Ruby using installer

http://rubyinstaller.org/downloads

.

Install DevKit

DevKit-tdm-32-xxx.exe (also from http://rubyinstaller.org/downloads )

.

Install cucumber

$ gem install rake bundler rspec cucumber

$ gem install capybara rest-client httparty ruby-oci8

Check version

$ gem –version

$ cucumber –version

.

.

(to be continued)

./.

About DucQuoc.wordpress.com

A coder, content creator, and a proud father of 2 princesses.
This entry was posted in Coding, Linux. Bookmark the permalink.

Leave a comment