Over the last week, on a few gem install or gem update operations, I\'ve received an error similar to these:
ERROR: While generating documentation for sinatra-1.3.1
I had a similar problem on Ubuntu and updating rubygems itself solved the problem for me. You can do that by entering the following at the command line:
gem update --system
Also, you can always skip the doc generation by using:
--no-rdoc --no-ri
when installing the gem.