Hi, it might be due to my lack of experience but I failed my
installation of rails.
I roughly followed the steps from "Ruby on Rails™ 3 Tutorial: Learn
Rails™ by Example" from Michael Hartl. I'm using Mac OS X 10.6.7 (Snow
Leopard). When using gem for installing rails, here's what I got:
$:~ sudo gem install rails --version 3.0.7
Fetching: activesupport-3.0.7.gem (100%)
Fetching: activemodel-3.0.7.gem (100%)
Fetching: actionpack-3.0.7.gem (100%)
...
then along the way, I got the following message:
WARNING: builder-2.1.2 has an invalid nil value for @cert_chain
...
WARNING: abstract-1.0.0 has an invalid nil value for @cert_chain
...
Installing ri documentation for builder-2.1.2...
ERROR: While generating documentation for builder-2.1.2
... MESSAGE: Unhandled special: Special: type=17, text="<!-- HI -->"
... RDOC args: --ri --op /Users/huguesjoly/.rvm/rubies/ruby-1.8.7-p334/
lib/ruby/gems/1.8/doc/builder-2.1.2/ri --title Builder -- Easy XML
Building --main README --line-numbers lib CHANGES Rakefile README doc/
releases/builder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc doc/
releases/builder-2.1.1.rdoc --title builder-2.1.2 Documentation --
quiet
Of course, checking the version doesn't do any good:
$:~ rails -v
/Users/huguesjoly/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/
rubygems/dependency.rb:247:in `to_specs': Could not find rails (>= 0)
amongst [rake-0.8.7] (Gem::LoadError)
from /Users/huguesjoly/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/
site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /Users/huguesjoly/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/
site_ruby/1.9.1/rubygems.rb:1182:in `gem'
from /Users/huguesjoly/.rvm/rubies/ruby-1.9.2-p180/bin/rails:18:in
`<main>'
In my installation, I first installed git via MacPorts:
$:~ git --version
git version 1.7.4.4
Then I installed rvm:
$:~ rvm --version
rvm 1.6.20 by Wayne E. Seguin (
waynee...@gmail.com) [https://
rvm.beginrescueend.com/]
The gem that it includes has the following version:
$:~ gem --version
1.8.5
I used it to install ruby:
$:~ ruby --version
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]
I did google for the error message from my rails and one message from
this site proposed the version 1.7.2 of gem as it resolved a bug.
Alas, it didn't do me any good.
Thanks in advance,
Hugues Joly