One issue that I had while learning Ruby on Rails was how to install and attempt to configure it. There are too many programming blogs, too many smart guys out there that just didn’t get the bare essentials. How do you install it and make sure that its running properly? I went out to several Ruby on Rails blogs and attempted to gain insight into how to configure it properly – it shouldn’t be this difficult, right?

I’ve compiled a list of all the commands that you’ll need. You’ll want to substitute different commands at the certain points – like what version will you be using? What database – does SQLite not work for local dev – what does? Identifying these issues before hand makes you a better programmer. Btw, if you’re like me and working with friends on projects – make sure you’ve communicated what version of rails / ruby, bundler, and other technologies you are using – inconsistency will make merging code, and code management HELL.

  1. sudo apt-get install git
  2. sudo apt-get install libxslt-dev libxml2-dev libsqlite3-dev
  3. sudo apt-get update
  4. sudo apt-get curl
  5. sudo apt-get update
  6. sudo apt-get –no-install-recommends install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev
  7. \curl -L https://get.rvm.io | bash -s stable –ruby
  8. source ~/.bash_profile
  9. source /home/{USRNAME}/.rvm/scripts/rvm
  10. sudo apt-get update
  11. rvm install ruby -v 1.9.3
  12. gem install rails -v 3.2.3
  13. /bin/bash –login
  14. rvm use 1.9.3@rails3tutorial2ndEd –create –default
  15. gem -v
  16. gem update
  17. gem install rails

That will set you up with the environment.