Ruby - Setting Up The Environment

From Logic Wiki
Revision as of 22:29, 8 June 2015 by Macrop (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Ubuntu

install ubuntu from Web Site

required packages

   $ sudo apt-get update
   $ sudo apt-get upgrade
   $ sudo apt-get install build-essential
   $ sudo apt-get install vim
   $ sudo apt-get install libxml2-dev libxslt-dev #Needed for nokogiri gem
   $ sudo apt-get install libcurl3-dev #Needed for curb gem
   $ sudo apt-get install git-core
   $ sudo apt-get install curl
   $ sudo apt-get install libpq-dev # for pg gem

MySQL client and server

For a dev machine it's more convinient to leave the root password blank

   $ sudo apt-get install mysql-server mysql-client  libmysqld-dev

PostgreSQL

apt-get install postgresql-9.4 
   

RVM

Follow the instructions below to install `rvm`

   $ curl -L https://get.rvm.io | bash

Open a new terminal window or source your profile

   $ rvm install 1.9.3

Make this the default version of ruby

   $ rvm use 1.9.3 --default

Test & Other Tools

gem install cucumber 
gem install bundler
sudo apt-get install meld

Sources

  • koans.heroku.com
  • ruby-doc.org
  • tutorials.jumpstartlab.com/projects/ruby_in_100_minutes.html