0

我正在运行“sudo gem install calabash-android”,我收到以下错误:

Successfully installed gherkin-2.12.2
Successfully installed multi_test-0.0.2
Successfully installed cucumber-1.3.8
Successfully installed json-1.8.1
Successfully installed retriable-1.3.3.1
Successfully installed slowhandcuke-0.0.3
Successfully installed rubyzip-0.9.9
Successfully installed awesome_print-1.2.0
Successfully installed httpclient-2.3.4.1
Successfully installed thor-0.18.1
Successfully installed bundler-1.3.5
Successfully installed mime-types-1.25
Successfully installed rest-client-1.6.7
Successfully installed xamarin-test-cloud-0.9.26
Successfully installed escape-0.0.4
Successfully installed calabash-android-0.4.14
16 gems installed
Installing ri documentation for gherkin-2.12.2...
Installing ri documentation for multi_test-0.0.2...
Installing ri documentation for cucumber-1.3.8...
Installing ri documentation for json-1.8.1...
Installing ri documentation for retriable-1.3.3.1...
Installing ri documentation for slowhandcuke-0.0.3...
Installing ri documentation for rubyzip-0.9.9...
Installing ri documentation for awesome_print-1.2.0...
Installing ri documentation for httpclient-2.3.4.1...


RDoc failure in lib/httpclient.rb at or around line 408 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:0x1049a5f38>

我可以做些什么来解决这个问题?我正在遵循此 URL 上的步骤:https ://github.com/calabash/calabash-android/blob/master/documentation/installation.md

4

1 回答 1

2

如果您不需要它,解决方法是在没有文档的情况下安装(google、ruby-doc 和 stackoverflow 也可以正常工作!):

sudo gem install calabash-android --no-rdoc

从现在开始,它也可以成为您的默认设置

于 2013-10-22T20:50:22.620 回答