本文介绍了无法加载此类文件 -- 2.2/gherkin_lexer_en,如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要一点帮助.我该如何解决这个问题?
I need a little help. How do I resolve this problem?
当我调用 cucumber
时,出现以下错误:
When I call cucumber
I get the following error:
*** 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).这原因是小黄瓜 gem 还没有附带已编译的二进制文件对于更新的版本或 Ruby,而不是 x64.
我们正在开发 Gherkin3 来解决这个问题.看到这个发布背景.我不能给你一个预计到达时间,但至少有几个几个月后.
We're working on a Gherkin3 which will address this issue. See this post for background. I cannot give you an ETA, but it's at least a few months away.
推荐答案
- 我从 http://rubyinstaller.org/downloads/ 下载 Ruby 2.0 x86
- 安装 exe
- cmd中的命令:
gem install calabash-android
错误:安装 calabash-android 时出错:json"原生 gem 需要安装构建工具.
- 从 http://rubyinstaller.org/downloads/ 下载 DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe
- 将 DevKit 解压到路径 C:Ruby200DevKit
- 运行 cd C:Ruby200DevKit
- 运行 ruby dk.rb 初始化
- 运行 ruby dk.rb 审查
- 运行 ruby dk.rb 安装
- 再次使用命令
gem install calabash-android
- I download Ruby 2.0 x86 from http://rubyinstaller.org/downloads/
- Install exe
- Command in cmd:
gem install calabash-android
ERROR: Error installing calabash-android: The 'json' native gem requires installed build tools.
- Download from http://rubyinstaller.org/downloads/ DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe
- Extract DevKit to path C:Ruby200DevKit
- Run cd C:Ruby200DevKit
- Run ruby dk.rb init
- Run ruby dk.rb review
- Run ruby dk.rb install
- And again use command
gem install calabash-android
这篇关于无法加载此类文件 -- 2.2/gherkin_lexer_en,如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!