我正在尝试使用 jruby 运行黄瓜。以下是我正在使用的命令:
$ jruby -S cucumber
它给了我以下错误:
Gem::LoadError: Could not find 'cucumber' (>= 0) among 20 total gem(s)
to_specs at /Users/shrivaw1/.rvm/rubies/jruby-1.7.15/lib/ruby/shared/rubygems/dependency.rb:298
to_spec at /Users/shrivaw1/.rvm/rubies/jruby-1.7.15/lib/ruby/shared/rubygems/dependency.rb:309
gem at /Users/shrivaw1/.rvm/rubies/jruby-1.7.15/lib/ruby/shared/rubygems/core_ext/kernel_gem.rb:47
(root) at /usr/bin/cucumber:22
当我尝试运行以下命令时:
$ jgem install cucumber
或者
$ jruby -S gem install cucumber
然后我得到以下错误
ERROR: Loading command: install (OpenSSL::X509::StoreError)
setting default path failed: null
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
我还尝试使用以下命令(从谷歌搜索中找到)添加 cacert.pem,但它也没有帮助。
export SSL_CERT_FILE=/Users/{PATH}/cacert.pem
谁能帮我解决这个问题。我基本上想使用 jruby 运行 Sikuli + Cucumber。(https://github.com/chaslemley/cucumber_sikuli)