我正在使用Ray(https://github.com/Mon-Ouie/ray),我似乎无法在Windows上使用JRuby。作者说他用JRuby和Rubinius测试了它,所以我尝试了一下。它显然不起作用,因为需要原生扩展。有没有办法让它发挥作用?
--> jgem install ray
Building native extensions. This could take a while...
ERROR: Error installing ray:
ERROR: Failed to build gem native extension.
c:/jruby-1.6.7/bin/jruby.exe extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library very well.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
checking for GL/glxext.h... no
checking for X11/extensions/Xrandr.h... no
checking for main() in -lXrandr... no
checking for main() in -lX11... no
*** extconf.rb failed ***
答案 0 :(得分:0)
extconf.rb文件正在使用RUBY_PLATFORM
来包含正确的依赖项。
Jruby将其设为RUBY_PLATFORM
为java。通过运行ruby -e 'puts RUBY_PLATFORM'
来试用它。
您可以尝试更改extconf.rb
以匹配/mingw|java/
。
您也可以尝试使用MRI红宝石。