This post originated from an RSS feed registered with Ruby Buzz
by James Britt.
Original Post: Ruby 1.8.1 ri Data Files
Feed Title: ruby-doc
Feed URL: http://www.ruby-doc.org/index.rb/rss0.91.xml
Feed Description: New and updates for the Ruby Documentation Project web site.
If you are running the Windows self-installer version of Ruby 1.8.1 you likely have problems running ri. For various reasons, the ri data files are not included with the distribution, and running RDoc to generate the data files fails.
Curt Hibbs, who is among the team responsible for preparing the Ruby Windows installer, has zipped up the data files for Ruby 1.8.1 and made them available. They are mirrored here on the ruby-doc download page as well.
Curt offers these instructions for getting ri to play nice in the Windows installer:
Unzip this into your ruby install dir (you should then have a "share" subdirectory in your ruby install dir)
rdoc.bat in the bin directory has 4 bad paths in them (all near the top of the file). You don't need to delete his batch file, just change the paths to your ruby install dir ("c:\ruby" by default)
"rdoc" and "ri" in the bin directory are missing their ".rb" extensions -- simply rename them
(Note: Curt's instructions say to extract the zip file into the Ruby installation directory, which should create a 'share' subdirectory, but it seems that the zip file only contains an ri directory and its subtrees. You may need to first create the 'share directory and extract the data files there, giving you, for example, c:\ruby\share\ri ... )
As of right now, the current version of the Windows install is 1.8.1-12, released April 18, 2004. Later version may not have this ri issues.