Difference between revisions of "Ruby - Setting Up The Environment"
From Logic Wiki
m |
m (1 revision imported) |
(No difference)
| |
Revision as of 14:27, 9 May 2016
Contents
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