Ruby 1.9 ri on Windows does not know anything about any classes

I am using Windows XP Service Pack 2 (SP2) and installing the Ruby installer through Ruby 1.9 with one click. Then, when I try to use ri, I get the following answer, can someone help me with my problem?

C:\Documents and Settings\eyang>ruby --version ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32] C:\Documents and Settings\eyang>ri --version ri 2.2.2 C:\Documents and Settings\eyang>ri String Updating class cache with 0 classes... Nothing known about String C:\Documents and Settings\eyang>ri Updating class cache with 0 classes... No ri data found If you've installed Ruby yourself, you need to generate documentation using: make install-doc from the same place you ran `make` to build ruby. If you installed Ruby from a packaging system, then you may need to install an additional package, or ask the packager to enable ri generation. C:\Documents and Settings\eyang> 

By the way, when I try to use gem, I also got the following error messages, can anyone explain this?

 C:\Documents and Settings\eyang>gem --version 1.3.5 C:\Documents and Settings\eyang>gem query --remote *** REMOTE GEMS *** ERROR: While executing gem ... (Errno::ENOMEM) Not enough space - <STDOUT> C:\Documents and Settings\eyang> 
+10
installer ruby
Oct 19 '09 at 7:24
source share
4 answers

RubyInstaller does not bind the RI documentation as it increases the size of the distribution package and the installation time of the package.

Instead, we linked CHM (Windows Help) files for the Core API and StdLib.

This was discussed in the RubyInstaller group, and a decision was made on this basis.

As for your other question, two things: you need to specify the name or part of this gem, since there are 12K stones in RubyForge.

In addition, depending on the console configuration (Latin or something else), the "Out of Space" error will be associated with the terminal itself, and not with RubyGems.

+8
Oct 19 '09 at 13:23
source share

Go to the same folder where the ruby ​​is installed. Then do:

 rdoc --all --ri 
+14
Apr 28 '10 at 0:27
source share

windows rubyinstaller does not come with ri for the kernel by default, so install gdoc-data gem, then it will have it.

+9
Aug 31 '10 at 16:48
source share

If you use rvm try $ rvm docs generate-ri

+4
Apr 09 '12 at 20:26
source share



All Articles