我正在尝试安装''''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>
答案 0 :(得分:15)
不要太担心它,它只是尝试安装gem的ri文档失败,但正如它所说,gem本身安装成功。如果您不使用ri / Rdoc,则可以在运行--no-rdoc --no-ri
时传递gem install
以跳过安装本地文档,或者您可以modify your .gemrc
file to make it the default。