I am trying to deploy a Jruby app on Heroku. Unfortunately, when I try to install gem for Heroku using jruby, I get following error:
/proj/jruby-1.3.1/lib/ruby/1.8/mkmf.rb:7: JRuby does not support native extensions. Check wiki.jruby.org for alternatives. (NotImplementedError) from /proj/jruby-1.3.1/lib/ruby/1.8/mkmf.rb:1:in `require' from extconf.rb:1 ERROR: Error installing heroku: ERROR: Failed to build gem native extension.
Is there a way to install heroku gem for Jruby? Any help will be great.
Cheers
Best Answer
The problem is that the
heroku
gem relies on some other gems that have native C extensions, which of course don't work in JRuby.I'm also reasonably sure that heroku doesn't support JRuby anyway.