$ gem install ruby-lzma
GET http://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
[...]
/home/charl/.rvm/gems/jruby-1.7.2@thoth/gems/ruby-lzma-0.4.3/test/test_lzma.rb
Building native extensions. This could take a while...
ERROR: Error installing ruby-lzma:
ERROR: Failed to build gem native extension.
NotImplementedError: C extension support is not enabled. Pass -Xcext.enabled=true to JRuby or set JRUBY_OPTS or modify .jrubyrc to enable.
(root) at /home/charl/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/mkmf.rb:8
require at org/jruby/RubyKernel.java:1027
(root) at /home/charl/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:1
(root) at extconf.rb:1
Gem files will remain installed in /home/charl/.rvm/gems/jruby-1.7.2@thoth/gems/ruby-lzma-0.4.3 for inspection.
Results logged to /home/charl/.rvm/gems/jruby-1.7.2@thoth/gems/ruby-lzma-0.4.3/ext/gem_make.out
$ ruby -v
jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on OpenJDK 64-Bit Server VM 1.6.0_24-b24 [linux-amd64]
$ gem install ruby-lzma GET http://rubygems.org/latest_specs.4.8.gz 302 Moved Temporarily [...] /home/charl/.rvm/gems/jruby-1.7.2@thoth/gems/ruby-lzma-0.4.3/test/test_lzma.rb Building native extensions. This could take a while... ERROR: Error installing ruby-lzma: ERROR: Failed to build gem native extension.
NotImplementedError: C extension support is not enabled. Pass -Xcext.enabled=true to JRuby or set JRUBY_OPTS or modify .jrubyrc to enable.
(root) at /home/charl/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/mkmf.rb:8 require at org/jruby/RubyKernel.java:1027 (root) at /home/charl/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:1 (root) at extconf.rb:1
Gem files will remain installed in /home/charl/.rvm/gems/jruby-1.7.2@thoth/gems/ruby-lzma-0.4.3 for inspection. Results logged to /home/charl/.rvm/gems/jruby-1.7.2@thoth/gems/ruby-lzma-0.4.3/ext/gem_make.out
$ ruby -v jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on OpenJDK 64-Bit Server VM 1.6.0_24-b24 [linux-amd64]