ianlevesque / ruby-lzma

Simple ruby wrappers for LZMA compression and decompression. Fully functional, on Ruby, JRuby, and MacRuby.
12 stars 5 forks source link

no such file to load -- lzma_java #1

Open nirvdrum opened 12 years ago

nirvdrum commented 12 years ago

I installed ruby-lzma 0.4.3 in JRuby 1.6.7.2 in 1.9 mode and when I try to require the file, I get the following:

irb(main):001:0> require 'lzma'
LoadError: no such file to load -- lzma_java
    from org/jruby/RubyKernel.java:1042:in `require'
    from /home/nirvdrum/.rbenv/versions/jruby-1.6.7.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from /home/nirvdrum/.rbenv/versions/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/ruby-lzma-0.4.3/lib/lzma.rb:8:in `(root)'
    from org/jruby/RubyKernel.java:1042:in `require'
    from /home/nirvdrum/.rbenv/versions/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/ruby-lzma-0.4.3/lib/lzma.rb:60:in `require'
    from (irb):1:in `evaluate'
    from org/jruby/RubyKernel.java:1088:in `eval'
    from org/jruby/RubyKernel.java:1410:in `loop'
    from org/jruby/RubyKernel.java:1197:in `catch'
    from org/jruby/RubyKernel.java:1197:in `catch'
    from /home/nirvdrum/.rbenv/versions/jruby-1.6.7.2/bin/irb:13:in `(root)'
ianlevesque commented 12 years ago

That's probably because it's never been tested with JRuby in 1.9 mode. Sorry about that. I don't actively develop this anymore but if you find a fix I'll gladly merge it.

nirvdrum commented 12 years ago

It looks like the JAR isn't built in the gem. Should it be or would it get compiled on the fly somehow?