安装 gem 时出现的问题
Posted
技术标签:
【中文标题】安装 gem 时出现的问题【英文标题】:issue occurring while installing gem 【发布时间】:2012-03-22 16:26:16 【问题描述】:我正在尝试安装 '''sudo gem install soap4r'''
但我面临以下问题..
Successfully installed httpclient-2.2.4
Successfully installed soap4r-1.5.8
2 gems installed
Installing ri documentation for httpclient-2.2.4...
RDoc failure in lib/httpclient.rb at or around line 405 column 16
Before reporting this, could you check that the file
you're documenting compiles cleanly--RDoc is not a
full Ruby parser, and gets confused easily if fed
invalid programs.
The internal error was:
ERROR: While executing gem ... (NoMethodError)
undefined method `name' for #<RubyToken::TkLPAREN:0xb6598024>
【问题讨论】:
【参考方案1】:不要太担心,它只是尝试安装 gem 的 ri 文档失败,但正如它所说,gem 本身安装成功。如果不使用ri/Rdoc,可以在运行gem install
时传递--no-rdoc --no-ri
跳过安装本地文档,也可以modify your .gemrc
file to make it the default。
【讨论】:
感谢您的更新。我已尝试“sudo gem install soap4r --no-rdoc”。但问题仍然存在 @sangeethkumar 抱歉,安装 ri 和 Rdoc 文档可能会崩溃。查看我更新的答案,如果有帮助,请告诉我。以上是关于安装 gem 时出现的问题的主要内容,如果未能解决你的问题,请参考以下文章