How do I install the Ruby ri documentation?
Seems you have installer Ruby 1.9.1 distributed by the RubyInstaller project.
You can use the Windows Help Files (CHM) that came with the installer instead of the ri documentation.
The problem of the RI documentation is that some versions of RDoc have problems generating it and also generated more than 10 thousands files which slowed down the installers considerably.
How do I install ri documentation in JRuby?
I found out: it seems that the JRuby version of io/console
does not work well with the Windows Command prompt: https://github.com/jruby/jruby/blob/master/lib/ruby/stdlib/io/console/jruby.rb.
A solution is, for example, to issue the rdoc --all --ri
command within a Windows Git Bash rather than a Command prompt.
Ruby gem failure on installing ri documentation
Not a fix, really, but a workaround: Put this line:
gem: --no-rdoc --no-ri
into a file named ~/.gemrc
to skip installation of rdoc and ri documentation (which you may not want on your system anyway - it will speed up the install process quite a bit).
Terminal stuck on installing ri documentation for rails
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
How to get the Ruby documentation from the command line
If you're using RVM
to manage your Ruby installations you can do this:
rvm docs generate
If not, try doing this:
gem install rdoc-data
rdoc-data --install
then try the ri
command again.
How do I generate ri documentation for custom objects and methods?
If you run rdoc
from the directory containing your code, it can generate both ri and rdoc documents.
See the output of rdoc --help
, or read through the RDoc site to learn more about the options, but in general you want the --ri-site
flag.
Related Topics
How to Install Ruby 1.9.3 in MAC Os X Lion
Ruby Sleep or Delay Less Than a Second
Colon (:) Appears as Forward Slash (/) When Creating File Name
Emacs Is Ignoring My Path When It Runs a Compile Command
Ruby 'Encode': "\Xc3" from Ascii-8Bit to Utf-8 (Encoding::Undefinedconversionerror)
Select Arrays Between Date Ranges with Ruby
Block Syntax Difference Causes "Localjumperror: No Block Given (Yield)"
Forking a Gem for a Rails Project
How to Get the Name of the Command Called for Usage Prompts in Ruby
Capistrano Ssh::Authenticationfailed, Not Prompting for Password
Rails with Ruby-Debugger Throw 'Symbol Not Found: _Ruby_Current_Thread (Loaderror)'
How to Check If a Value Is a Number
How to Run a Ruby Script Using Rbenv with Cron
How to Convert a Ruby Hash to Xml
Does Ruby Provide a Way to Do File.Read() with Specified Encoding