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, brother, and player at times...
This entry was posted in Coding, Linux. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s