jruby 总是显示,即使 gem 已安装,但没有
jruby always shows, even a gem has been installed, but it's not
我正在尝试通过 jruby 运行 一个使用特定 gem 的脚本。但是它总是显示gem,即使我已经安装了它,也没有安装。
% jruby ./examples/test1.rb
Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1
% gem pristine ffi --version 1.13.1
Restoring gems to pristine condition...
Building native extensions. This could take a while...
Restored ffi-1.13.1
% jruby ./examples/test1.rb
Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1
% jruby -v
jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc OpenJDK 64-Bit Server VM 14.0.1+14 on 14.0.1+14 +jit [darwin-x86_64]
如何治愈?
可能值得向 ffi 报告一个问题,gem 声明了它的 -java gem 变体的扩展,但它仅真正提供并构建了 MRI 下的本机扩展。
我正在尝试通过 jruby 运行 一个使用特定 gem 的脚本。但是它总是显示gem,即使我已经安装了它,也没有安装。
% jruby ./examples/test1.rb
Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1
% gem pristine ffi --version 1.13.1
Restoring gems to pristine condition...
Building native extensions. This could take a while...
Restored ffi-1.13.1
% jruby ./examples/test1.rb
Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1
% jruby -v
jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc OpenJDK 64-Bit Server VM 14.0.1+14 on 14.0.1+14 +jit [darwin-x86_64]
如何治愈?
可能值得向 ffi 报告一个问题,gem 声明了它的 -java gem 变体的扩展,但它仅真正提供并构建了 MRI 下的本机扩展。