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.

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...