rubygems – 安装gem时发生问题

前端之家收集整理的这篇文章主要介绍了rubygems – 安装gem时发生问题前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图安装”’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>

解决方法

不要担心它太多了,它只是试图安装gem的ri文档,但正如它所说,宝石本身安装成功.如果不使用ri / Rdoc,可以在运行gem安装时通过–no-rdoc –no-ri来跳过安装本地文档,也可以使用 modify your .gemrc file to make it the default.

猜你在找的Ruby相关文章