我需要一点帮助。我该如何解决这个问题?
当我打电话时cucumber
我收到以下错误:
*** WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansic
on/) to get coloured output on Windows
WARNING: cannot load such file -- 2.2/gherkin_lexer_en
Couldn't load 2.2/gherkin_lexer_en
The $LOAD_PATH was:
lib
C:/Ruby22/lib/ruby/gems/2.2.0/gems/cucumber-1.3.19/bin/../lib
C:/Ruby22/lib/ruby/gems/2.2.0/gems/builder-3.2.2/lib
C:/Ruby22/lib/ruby/gems/2.2.0/gems/diff-lcs-1.2.5/lib
C:/Ruby22/lib/ruby/gems/2.2.0/gems/multi_json-1.11.0/lib
C:/Ruby22/lib/ruby/gems/2.2.0/gems/gherkin-2.12.2-x86-mingw32/lib
[...]
System:
- Windows 8.1 x64
- Ruby 2.2.1 安装程序
我得到答案:https://github.com/cucumber/cucumber/issues/830#issuecomment-90837546 https://github.com/cucumber/cucumber/issues/830#issuecomment-90837546
恐怕 Windows/Ruby 上的 Cucumber 需要 ruby 2.0.0 (x86)。这
原因是 gherkin gem 尚未附带已编译的二进制文件
适用于更新版本或 Ruby,不适用于 x64。
我们正在开发 Gherkin3 来解决这个问题。看到这个
发布背景。我无法给你预计到达时间,但至少有几个
几个月后。
- 我从下载 Ruby 2.0 x86http://rubyinstaller.org/downloads/ http://rubyinstaller.org/downloads/
- 安装exe
- cmd中的命令:
gem install calabash-android
ERROR: Error installing calabash-android:
The 'json' native gem requires installed build tools.
- 下载自http://rubyinstaller.org/downloads/ http://rubyinstaller.org/downloads/DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe
- 将 DevKit 解压到路径 C:\Ruby200\DevKit
- 运行 cd C:\Ruby200\DevKit
- 运行 ruby dk.rb init
- 运行 ruby dk.rb 审查
- 运行 ruby dk.rb 安装
- 并再次使用命令
gem install calabash-android
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)