问题描述
我最近在 Windows 7 上安装了 Ruby 1.9.1,显然它没有附带标准 ri 文档.所以当我做'ri Array'时,我得到:
I've recently installed Ruby 1.9.1 on Windows 7, and apparently it doesn't come with the standard ri documentation. So when I do 'ri Array', I get:
C:\>ri Array
Nothing known about Array
有什么方法可以安装此文档以使上述工作正常运行吗?
Is there a way I can install this documentation so that the above works?
推荐答案
似乎您有 RubyInstaller 项目分发的安装程序 Ruby 1.9.1.
Seems you have installer Ruby 1.9.1 distributed by the RubyInstaller project.
您可以使用安装程序随附的 Windows 帮助文件 (CHM) 而不是 ri 文档.
You can use the Windows Help Files (CHM) that came with the installer instead of the ri documentation.
RI 文档的问题在于,某些版本的 RDoc 在生成它时存在问题,并且还生成了超过 1 万个文件,这大大降低了安装程序的速度.
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.
这篇关于如何安装 Ruby ri 文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!