Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error installing rails-4.0.0

Using OS X 10.8.4 and ruby 1.9.3p194

$ gem install rails
Successfully installed rails-4.0.0
1 gem installed
Installing ri documentation for rails-4.0.0...
Installing RDoc documentation for rails-4.0.0...
ERROR:  While generating documentation for rails-4.0.0
... MESSAGE:   error generating /Users/michaelirey/.rvm/gems/ruby-1.9.3-p194/doc/rails-4.0.0/rdoc/guides/Rakefile.html: Error while evaluating /Users/michaelirey/.rvm/gems/ruby-1.9.3-p194/gems/rdoc-3.12.2/lib/rdoc/generator/template/darkfish/page.rhtml: undefined method `chomp' for nil:NilClass (RDoc::Error)
... RDOC args: --op /Users/michaelirey/.rvm/gems/ruby-1.9.3-p194/doc/rails-4.0.0/rdoc lib --title rails-4.0.0 Documentation --quiet

Looks like this is just for the documentation, but it would still be nice to get things installed without error.

like image 300
Michael Avatar asked Aug 27 '13 14:08

Michael


2 Answers

Try updating rdoc, it may just be old.

gem update rdoc
like image 121
Nick Veys Avatar answered Sep 28 '22 05:09

Nick Veys


Can't tell you where that error comes from, but considering how useless installing ri and rdoc actually is, I would just do:

gem install rails --no-ri --no-rdoc

You'll also get a much faster install by skipping the docs. In fact, this is what the official release page recommends: http://weblog.rubyonrails.org/2013/6/25/Rails-4-0-final/

like image 38
bluehallu Avatar answered Sep 28 '22 03:09

bluehallu