title: Jruby installation for ROR
body: <p>I'm trying to install Jruby on ROR for my application. Used commands from its documentation <a href="https://devcenter.heroku.com/articles/moving-an-existing-rails-app-to-run-on-jruby" rel="nofollow">https://devcenter.heroku.com/articles/moving-an-existing-rails-app-to-run-on-jruby</a> . While bundle installation got the following errors</p>
  
  <ol>
  <li>Your Ruby engine is ruby, but your Gemfile specified jruby</li>
  <li>Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.</li>
  </ol>
  
  <p>Furthermore certain gems are not installed successfully, shows error like 
  An error occurred while installing libv8 (3.16.14.3), and Bundler cannot
  continue.
  Make sure that <code>gem install libv8 -v '3.16.14.3'</code> succeeds before bundling.</p>
  
  <p>Not able to find the issue. Would somebody help with this ?</p>
  
  <p>Gemfile :</p>
  
  <pre><code>ruby '1.9.3', :engine =&gt; 'jruby', :engine_version =&gt; '1.7.9'
  gem "rake"
  gem "rails", "3.2.16"
  gem 'foreigner'
  gem 'activerecord-jdbcpostgresql-adapter'
  gem 'jruby'
  gem 'airbrake'
  gem "spreadsheet", "~&gt; 0.9.0"
  gem 'paperclip'
  gem 'aws'
  gem 'aws-sdk'
  gem 'aws-s3', :require =&gt; nil
  gem 'authlogic'
  gem 'execjs'
  gem 'mail', :require =&gt; nil
  gem 'fastercsv', :require =&gt; nil
  gem "rspec-rails"
  gem 'rubyzip', :require =&gt; nil
  gem 'test-unit'
  gem 'typhoeus'
  gem 'thin'
  gem 'therubyracer'
  gem 'useragent'
  gem 'will_paginate'
  gem 'therubyracer'
  gem 'libv8', '3.16.14.3'
  </code></pre>