Setup Ruby environment

$ curl -L get.rvm.io | bash -s stable

$ cat ~/.bash_profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

$ source ~/.bash_profile

$ rvm install 1.9.3

$ rvm use 1.9.3 --default

(re-login)

$ which ruby
/home/takamario/.rvm/rubies/ruby-1.9.3-p125/bin/ruby

$ ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]

$ gem -v
1.8.22

$ gem install rails sinatra sqlite3 redis mongodb

Share this

Related Posts