4Manuals

  • PDF Cloud HOME

FFI是ChildProcess gem中Windows或posix_spawn支持的必需先决条件 Download

    日期时间比较Ruby on Rails 如何在ROR中添加不同的CSS样式类三元运算符输出 请求google review api邀请时出错,产品数据无效-产品缺少SKU 如何正确地对RoR上的数值类进行猴子修补? 如何启动Rails服务器? Rails-file.readlines与file.gets 转到Github页面时Jekyll代码未正确构建 Instagram用户的联系电子邮件? 在RAILS中公开父对象内的对象元素数组 像assert_database_unchanged这样的Rspec助手吗?

我正在执行使用Ruby编程语言创建的Cucumber脚本,但是它引发与Child Process相关的错误,该错误具有od FFI gem的先决条件,以下是错误stacktrace

    FFI is a required pre-requisite for Windows or posix_spawn support in the ChildProcess gem. Ensure the `ffi` gem is installed. If you believe this is an error, please file a bug at http://github.com/enkessler/childprocess/issues (ChildProcess::MissingFFIError)
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/childprocess-3.0.0/lib/childprocess/windows.rb:6:in `rescue in <top (required)>'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/childprocess-3.0.0/lib/childprocess/windows.rb:3:in `<top (required)>'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/childprocess-3.0.0/lib/childprocess.rb:209:in `require'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/childprocess-3.0.0/lib/childprocess.rb:209:in `<top (required)>'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.142.6/lib/selenium/webdriver.rb:20:in `require'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.142.6/lib/selenium/webdriver.rb:20:in `<top (required)>'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.142.6/lib/selenium-webdriver.rb:20:in `require'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.142.6/lib/selenium-webdriver.rb:20:in `<top (required)>'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/watir-6.11.0/lib/watir.rb:1:in `require'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/watir-6.11.0/lib/watir.rb:1:in `<top (required)>'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/page-object-2.2.4/lib/page-object.rb:1:in `require'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/page-object-2.2.4/lib/page-object.rb:1:in `<top (required)>'
E:/e2NxtAutomation/DEVOPS/Spec/Func/features/support/env.rb:4:in `require'
E:/e2NxtAutomation/DEVOPS/Spec/Func/features/support/env.rb:4:in `<top (required)>'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/cucumber-3.1.1/lib/cucumber/glue/registry_and_more.rb:107:in `load'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/cucumber-3.1.1/lib/cucumber/glue/registry_and_more.rb:107:in `load_code_file'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/cucumber-3.1.1/lib/cucumber/runtime/support_code.rb:144:in `load_file'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/cucumber-3.1.1/lib/cucumber/runtime/support_code.rb:85:in `block in load_files!'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/cucumber-3.1.1/lib/cucumber/runtime/support_code.rb:84:in `each'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/cucumber-3.1.1/lib/cucumber/runtime/support_code.rb:84:in `load_files!'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/cucumber-3.1.1/lib/cucumber/runtime.rb:272:in `load_step_definitions'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/cucumber-3.1.1/lib/cucumber/runtime.rb:68:in `run!'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/cucumber-3.1.1/lib/cucumber/cli/main.rb:34:in `execute!'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/cucumber-3.1.1/bin/cucumber:9:in `<top (required)>'
C:/Ruby24-x64/bin/cucumber:23:in `load'
C:/Ruby24-x64/bin/cucumber:23:in `<main>'

Process finished with exit code 2

根据错误,我已经成功安装了FFI宝石

gem install ffi
Fetching: ffi-1.11.3-x64-mingw32.gem (100%)
Successfully installed ffi-1.11.3-x64-mingw32
Parsing documentation for ffi-1.11.3-x64-mingw32
Installing ri documentation for ffi-1.11.3-x64-mingw32
Done installing documentation for ffi after 2 seconds
1 gem installed

但是仍然发生相同的错误。我的机器详细信息 作业系统:Windows 7 Ruby版本:2.4.0

建议我为此解决一些问题。

0 个答案:

没有答案



Similar searches
    单击子链接jquery时如何防止所有父母切换? 选择前10k花费太多时间来执行 无法访问https://storage.googleapis.com/ 我的旋转3d汽车项目出现“无法读取属性'addEventListener'”错误? -three.js C#DataTable单元格更新后出现空行