cdesc-c.ri的参数无效

时间:2011-06-16 16:56:12

标签: ruby-on-rails

为什么我收到此错误?

c:\Ruby192>gem install rails
Successfully installed activesupport-3.0.9
Successfully installed builder-2.1.2
Successfully installed i18n-0.5.0
Successfully installed activemodel-3.0.9
Successfully installed rack-1.2.3
Successfully installed rack-test-0.5.7
Successfully installed rack-mount-0.6.14
Successfully installed tzinfo-0.3.28
Successfully installed abstract-1.0.0
Successfully installed erubis-2.6.6
Successfully installed actionpack-3.0.9
Successfully installed arel-2.0.10
Successfully installed activerecord-3.0.9
Successfully installed activeresource-3.0.9
Successfully installed mime-types-1.16
Successfully installed polyglot-0.3.1
Successfully installed treetop-1.4.9
Successfully installed mail-2.2.19
Successfully installed actionmailer-3.0.9
Successfully installed thor-0.14.6
Successfully installed rdoc-3.6.1
Successfully installed railties-3.0.9
Successfully installed rails-3.0.9
23 gems installed
Installing ri documentation for activesupport-3.0.9...
Installing ri documentation for builder-2.1.2...
Installing ri documentation for i18n-0.5.0...
Installing ri documentation for activemodel-3.0.9...
Installing ri documentation for rack-1.2.3...
Installing ri documentation for rack-test-0.5.7...
Installing ri documentation for rack-mount-0.6.14...
Installing ri documentation for tzinfo-0.3.28...
Installing ri documentation for abstract-1.0.0...
Installing ri documentation for erubis-2.6.6...
Installing ri documentation for actionpack-3.0.9...
Installing ri documentation for arel-2.0.10...
Installing ri documentation for activerecord-3.0.9...
ERROR:  While executing gem ... (Errno::EINVAL)
    Invalid argument - ./</cdesc-<.ri

2 个答案:

答案 0 :(得分:1)

生成ri文档时出错。我不时遇到它们,除非你想使用内置文档,否则无需担心。

通常我不会安装文档,因为它可以在线获得并且有更好的资源。 尝试运行:

gem install rails --no-ri --no-rdoc

跳过文档生成并使gem安装更快,如果你不使用文档,它还可以节省空间。

答案 1 :(得分:0)

更新rdoc为我修复了它:

gem install rdoc
gem install rails
但是,坏消息是:一旦解决了,我就直接进入下一个错误。 “为rails-3.0.10安装ri文档...找不到文件'lib'”。不幸的是,没有fix for this yet