It's nice that there's an online version for the book:
http://railstutorial.org/ruby-on-rails-tutorial-book
As I was reading through the pages and following the examples, frustration started settling it.
You see the book assumes you have ALL of the necessary packages needed when following the install guide.
I don't want to give the complete step-by-step, but basically to play with Rails 3 you need to:
1. Install rvm (http://rvm.beginrescueend.com/)
2. Using rvm install some ruby (which downloads ruby source and compiles it)
-- here's where the problem starts
-- ruby compiles successfully but depending on your installed dev files, it may lack features that you will need when following the examples in the book.
I inadvertently mastered thru repetition the installation of a rails environment for my linux boxes (Isadora, Julia, Lucid).
To save others from frustration here's the list of packages that you need to install BEFORE installing some ruby into your rvm:
build-essential bison openssl libreadline5 libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev
Hope this saves others time that I didn't wanted to have spend. I was not able to watch Glee that day! :/
No comments:
Post a Comment