Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing require for JRuby #51

Open
fzakaria opened this issue Nov 11, 2020 · 0 comments
Open

Missing require for JRuby #51

fzakaria opened this issue Nov 11, 2020 · 0 comments

Comments

@fzakaria
Copy link

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')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant