【问题标题】:Errors installing calabash with gem on mac在 mac 上使用 gem 安装葫芦时出错
【发布时间】:2013-10-22 20:35:00
【问题描述】:

我正在运行“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

【问题讨论】:

    标签: android ruby macos installation calabash


    【解决方案1】:

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

    sudo gem install calabash-android --no-rdoc

    也可以be your default from now on

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-01-01
      • 2019-02-22
      • 1970-01-01
      • 2015-03-19
      • 2014-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多