无法加载这样的文件 – 2.2 / gherkin_lexer_en,如何修复?
我需要一些帮助。 我该如何解决这个问题?
当我调用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 [...]
系统:
- Windows 8.1 x64
- Ruby 2.2.1安装程序
我得到了答案: https : //github.com/cucumber/cucumber/issues/830#issuecomment-90837546
我担心Windows / Ruby上的Cucumber需要ruby 2.0.0(x86)。 原因是gherkin gem尚未附带更新版本或Ruby的编译二进制文件,而不适用于x64。
我们正在开发一个Gherkin3来解决这个问题。 请参阅此post了解背景信息 我不能给你一个ETA,但它至少还需要几个月的时间。
- 我从http://rubyinstaller.org/downloads/下载Ruby 2.0 x86
- 安装exe
- cmd中的命令:
gem install calabash-android
-
ERROR: Error installing calabash-android: The 'json' native gem requires installed build tools.
- 从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
我通过删除Gherkin
并通过bundle install
重新安装来解决问题
gem uninstall gherkin >> select all bundle install
这个问题看起来像这个问题 。 也许您可以通过以下评论来解决。 (y)的
sanjaykumar5115评论说,卸载小黄瓜并安装gherkin-2.12.1-x86-mingw32后,我的问题已得到解决