0

我通过以下方式安装了 sikuli gem: gem install sikuli

但是当我尝试以下操作时:

require 'sikuli'

它引发了以下错误:

LoadError: cannot load such file -- C:\Program Files (x86)\Sikuli X\/sikuli-script.jar
    from c:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from c:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from c:/Ruby193/lib/ruby/gems/1.9.1/gems/sikuli-0.3.0/lib/sikuli.rb:2:in `<top (required)>'
    from c:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
    from c:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
    from c:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from (irb):1
    from c:/Ruby193/bin/irb:12:in `<main>'

我已经在我的机器上安装了 sikuli。请帮助解决这个问题。

4

1 回答 1

1

据我所知,如果我们想使用 gem 'sikuli'

  1. 你需要在你的机器上安装java
  2. 'Sikuli' 与 jruby 一起工作,所以安装 jruby 并转到 jruby 的 IRB,然后点击“require 'Sikuli'”

您可以在此处查看详细信息

  1. 链接-1
  2. Link-2
于 2013-07-15T07:07:55.047 回答