【问题标题】:issue occurring while installing gem安装 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>

【问题讨论】:

    标签: rubygems


    【解决方案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 文档可能会崩溃。查看我更新的答案,如果有帮助,请告诉我。
    猜你喜欢
    • 1970-01-01
    • 2019-09-03
    • 2011-10-06
    • 1970-01-01
    • 2016-09-14
    • 2010-11-18
    • 1970-01-01
    • 2012-03-08
    • 1970-01-01
    相关资源
    最近更新 更多