ahoward / systemu

univeral capture of stdout and stderr and handling of child process pid for windows, *nix, etc.
Other
126 stars 33 forks source link

Missing require for JRuby #51

Open fzakaria opened 4 years ago

fzakaria commented 4 years ago

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')