Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Terminal stuck on installing ri documentation for rails

OSX Mavericks, trying to upgrade from Rails 4.0.4 to either 4.1.0.beta1 or 4.1.0.rc2 with ruby version ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0].

In both instances (beta1 and rc1 builds), Terminal gets stuck at Installing ri documentation for rails-4.1.0.rc2

and I have to quit the process (command + > ).

Any suggestions?

like image 382
haoYeezy Avatar asked Apr 08 '14 18:04

haoYeezy


2 Answers

This has happened to me a few times. I believe it is a known issue which has never been resolved properly.

Simply install the gem without the documentation, if you don't mind, like the other answer suggests.

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

UPDATE (2020-04-29)

The new way of generating no documentation is adding the --no-document (in short -N) option, like so:

gem install rails --no-document # or -N in short
like image 73
Jakub K Avatar answered Nov 20 '22 05:11

Jakub K


Are you sure it's stuck? The documentation takes ages to install (upwards of 4 mins even on a high end MBPr). You could also install the rails gem without documentation using:

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

like image 11
Mike Avatar answered Nov 20 '22 04:11

Mike