为什么我会得到这个错误?
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发布于 2011-06-17 02:15:13
这是生成ri文档时的错误。我经常遇到它们,除非你想使用内置的文档,否则没什么好担心的。
通常我不会安装文档,因为它可以在网上找到,而且有更好的资源。尝试运行:
gem install rails --no-ri --no-rdoc这跳过了文档的生成,使得gem的安装速度更快,如果你从来不使用文档,它也可以节省空间。
发布于 2011-08-21 04:35:10
更新rdoc为我修复了此问题:
gem install rdoc
gem install rails不过,坏消息是:一旦解决了这个问题,我就会直接遇到下一个bug。“正在为rails安装ri文档-3.0.10...找不到'lib‘文件”。不幸的是,没有任何fix for this yet。
https://stackoverflow.com/questions/6375694
复制相似问题