Windows 上的 ruby​​ 1.9 ri 对任何类一无所知 [英] ruby 1.9 ri on Windows knows nothing about any classes

查看:19
本文介绍了Windows 上的 ruby​​ 1.9 ri 对任何类一无所知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Windows XP SP2,并通过 Ruby 1.9 一键安装程序安装了 Ruby.然后当我尝试使用 ri 时,我得到以下响应,有人能帮我解决我的问题吗?

I'm using Windows XP SP2, and installed Ruby through Ruby 1.9 one click installer. Then when I try to using ri, I get the following response, can anyone help me with my problem?

C:Documents and Settingseyang>ruby --version
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]

C:Documents and Settingseyang>ri --version
ri 2.2.2

C:Documents and Settingseyang>ri String
Updating class cache with 0 classes...
Nothing known about String

C:Documents and Settingseyang>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 Settingseyang>

顺便说一下,当我尝试使用 gem 时,我也收到了以下错误消息,谁能解释一下?

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

C:Documents and Settingseyang>gem --version
1.3.5

C:Documents and Settingseyang>gem query --remote

*** REMOTE GEMS ***

ERROR:  While executing gem ... (Errno::ENOMEM)
    Not enough space - <STDOUT>

C:Documents and Settingseyang>

推荐答案

RubyInstaller 不捆绑 RI 文档,因为它增加了分发的大小和安装包的时间.

RubyInstaller do not bundle RI documentation, as it increased the size of the distribution and the time to install the package.

相反,我们为 Core 和 StdLib API 捆绑了 CHM(Windows 帮助)文件.

Instead, we bundled CHM (Windows Help) files for both Core and StdLib API.

RubyInstaller 小组对此进行了讨论,并在此基础上做出了决定.

This was discussed in the RubyInstaller group and the decision was made on that base.

至于您的另一点,有两件事:您需要提供一个 gem 名称或其中的一部分,因为 RubyForge 中有 12K 个 gem.

As for your other point, two things: you need to provide a gem name or part of it, since there are 12K gems in RubyForge.

此外,根据您的控制台配置(拉丁文或其他),空间不足错误将与终端本身有关,而不是与 RubyGems 相关.

Also, depending on your console configuration (Latin or something) the Not Enough space error will be related to the terminal itself, not RubyGems.

这篇关于Windows 上的 ruby​​ 1.9 ri 对任何类一无所知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆