Missing require for JRuby
Opened this issue · 0 comments
fzakaria commented
Running a small script I encounter the following error:
require 'systemu'
puts systemu('/sbin/ifconfig')
NameError: uninitialized constant JRuby::PathHelper
const_missing at org/jruby/RubyModule.java:3760
systemu at /home/fmzakari/.gem/jruby/2.5.0/gems/systemu-2.6.5/lib/systemu.rb:287
systemu at /home/fmzakari/.gem/jruby/2.5.0/gems/systemu-2.6.5/lib/systemu.rb:10
<main> at ruby-failure.rb:4
The following missing require
fixes it.
require 'systemu'
require 'jruby/path_helper'
puts systemu('/sbin/ifconfig')