Bundle install failed for JRuby

I uncommented unicorn in my Gemfile and tried to run bundle install, I
got this following error.

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

/usr/local/rvm/rubies/jruby-1.7.10/bin/jruby extconf.rb

/usr/local/rvm/rubies/jruby-1.7.10/lib/ruby/shared/mkmf.rb:14: Use
RbConfig instead of obsolete and deprecated Config.
mkmf.rb can’t find header files for ruby at
/usr/local/rvm/rubies/jruby-1.7.10/lib/native/include/ruby/ruby.h

extconf failed, uncaught signal 1

Gem files will remain installed in
/usr/local/rvm/gems/jruby-1.7.10/gems/kgio-2.9.2 for inspection.
Results logged to
/usr/local/rvm/gems/jruby-1.7.10/extensions/universal-java-1.7/1.9/kgio-2.9.2/gem_make.out
An error occurred while installing kgio (2.9.2), and Bundler cannot
continue.
Make sure that gem install kgio -v '2.9.2' succeeds before bundling.

Any idea?

Never mind, I was able to fix this.

FYI, Unicorn won’t work with JRuby

Ravi Gudipati <lists ruby-forum.com> writes:

Never mind, I was able to fix this.

FYI, Unicorn won’t work with JRuby

Ravi - Did you remove the unicorn gem then?