We’ll be using Ubuntu Linux during this course. You have two options:
Not So Easy Option: Install Ubuntu on a hard disc partition on your computer or on a virtual machine.
NOTE: The Cloud9 development environment has Ruby 2.2 already installed.
The following instructions allow you to install Ruby 2.2 (and some additional gems used in class) on Ubuntu 14.04. On the terminal type:
sudo add-apt-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install ruby2.2 ruby2.2-dev libsqlite3-dev
sudo gem2.2 install minitest sqlite3 sinatra
You can now run the ruby
command to execute scripts, or the irb
command to get an interactive Ruby shell.
NOTE: The Cloud9 development environment does not have the Ruby API command line reference installed by default.
Type on the terminal:
sudo gem install rdoc-data
sudo rdoc-data --install
You can now use the ri
command to consult the Ruby API documentation.