首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >cdesc-c.ri的参数无效

cdesc-c.ri的参数无效
EN

Stack Overflow用户
提问于 2011-06-17 00:56:12
回答 2查看 622关注 0票数 0

为什么我会得到这个错误?

代码语言:javascript
复制
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
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-06-17 02:15:13

这是生成ri文档时的错误。我经常遇到它们,除非你想使用内置的文档,否则没什么好担心的。

通常我不会安装文档,因为它可以在网上找到,而且有更好的资源。尝试运行:

代码语言:javascript
复制
gem install rails --no-ri --no-rdoc

这跳过了文档的生成,使得gem的安装速度更快,如果你从来不使用文档,它也可以节省空间。

票数 1
EN

Stack Overflow用户

发布于 2011-08-21 04:35:10

更新rdoc为我修复了此问题:

代码语言:javascript
复制
gem install rdoc
gem install rails

不过,坏消息是:一旦解决了这个问题,我就会直接遇到下一个bug。“正在为rails安装ri文档-3.0.10...找不到'lib‘文件”。不幸的是,没有任何fix for this yet

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6375694

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档