要求sikuli宝石抛出错误

时间:2013-06-19 11:46:49

标签: rubygems sikuli

我安装了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。请帮忙解决这个问题。

1 个答案:

答案 0 :(得分:1)

根据我的知识,如果我们想使用gem'sikuuli'

  1. 您的机器上需要进行Java设置
  2. 'Sikuli'和jruby一起工作,所以安装jruby并去jruby的IRB,点击“要求'Sikuli'”
  3. 您可以在此处查看详细信息

    1. Link-1
    2. Link-2