I’ve played with Rails 1 a little in the past and have decided to try to work on learning Rails 3 so I got the beta of the new book. I’m running Snow Leopard and am having trouble getting up and running. I ran all the commands at the bottom of page 23, but when I try to run the code at the top of page 24 in irb, I get “no such file to load” errors on both @require@ lines.
Here’s a Terminal transcript showing what is installed:
$ sudo gem install sqlite3-ruby Building native extensions. This could take a while... Successfully installed sqlite3-ruby-1.2.5 1 gem installed $ ruby --version ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9] $ rails --version Rails 2.3.5 $ irb --version irb 0.9.5(05/04/13) $ sqlite3 --version 3.6.15 $ rake --version rake, version 0.8.7 $ gem --version 1.3.6
and here’s the irb transcript:
irb(main):001:0> require 'rubygems' LoadError: no such file to load -- rubygems from (irb):1:in `require' from (irb):1 irb(main):002:0> require 'sqlite3' LoadError: no such file to load -- sqlite3 from (irb):2:in `require' from (irb):2
I’m not really sure where to go from here. If someone can land a hand, I’d appreciate it.