title: Cannot Install ruby-oci8 on Ubuntu 12.04LTS
body: <p>I execute</p>
  
  <pre><code>$ bundle install
  </code></pre>
  
  <p>For my rails application... (3.2.8)</p>
  
  <p>Right when it gets to ruby-oci8 ...</p>
  
  <pre><code>    Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
  
      /home/ubuntu/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb 
  checking for load library path... 
    LD_LIBRARY_PATH... 
      checking /usr/lib/oracle/12.1/client/... no
    checking ld.so.conf... no
  checking for cc... ok
  checking for gcc... yes
  checking for LP64... no
  checking for sys/types.h... yes
  checking for ruby header... ok
  Get the version of Oracle from SQL*Plus... *** extconf.rb failed ***
  Could not create Makefile due to some reason, probably lack of
  necessary libraries and/or headers.  Check the mkmf.log file for more
  details.  You may need configuration options.
  
  Provided configuration options:
      --with-opt-dir
      --without-opt-dir
      --with-opt-include
      --without-opt-include=${opt-dir}/include
      --with-opt-lib
      --without-opt-lib=${opt-dir}/lib
      --with-make-prog
      --without-make-prog
      --srcdir=.
      --curdir
      --ruby=/home/ubuntu/.rvm/rubies/ruby-1.9.3-p448/bin/ruby
      --with-instant-client
      --without-instant-client
  /home/ubuntu/.rvm/gems/ruby-1.9.3-p448/gems/ruby-oci8-2.1.5/ext/oci8/oraconf.rb:760:in `get_version': RuntimeError (RuntimeError)
      from /home/ubuntu/.rvm/gems/ruby-1.9.3-p448/gems/ruby-oci8-2.1.5/ext/oci8/oraconf.rb:709:in `initialize'
      from /home/ubuntu/.rvm/gems/ruby-1.9.3-p448/gems/ruby-oci8-2.1.5/ext/oci8/oraconf.rb:320:in `new'
      from /home/ubuntu/.rvm/gems/ruby-1.9.3-p448/gems/ruby-oci8-2.1.5/ext/oci8/oraconf.rb:320:in `get'
      from extconf.rb:18:in `&lt;main&gt;'
  ---------------------------------------------------
  Error Message:
    cannot get Oracle version from sqlplus
  Backtrace:
    /home/ubuntu/.rvm/gems/ruby-1.9.3-p448/gems/ruby-oci8-2.1.5/ext/oci8/oraconf.rb:760:in `get_version'
    /home/ubuntu/.rvm/gems/ruby-1.9.3-p448/gems/ruby-oci8-2.1.5/ext/oci8/oraconf.rb:709:in `initialize'
    /home/ubuntu/.rvm/gems/ruby-1.9.3-p448/gems/ruby-oci8-2.1.5/ext/oci8/oraconf.rb:320:in `new'
    /home/ubuntu/.rvm/gems/ruby-1.9.3-p448/gems/ruby-oci8-2.1.5/ext/oci8/oraconf.rb:320:in `get'
    extconf.rb:18:in `&lt;main&gt;'
  ---------------------------------------------------
  See:
   * http://ruby-oci8.rubyforge.org/en/HowToInstall.html
   * http://ruby-oci8.rubyforge.org/en/ReportInstallProblem.html
  
  
  
  Gem files will remain installed in /home/ubuntu/.rvm/gems/ruby-1.9.3-p448/gems/ruby-oci8-2.1.5 for inspection.
  Results logged to /home/ubuntu/.rvm/gems/ruby-1.9.3-p448/gems/ruby-oci8-2.1.5/ext/oci8/gem_make.out
  
  An error occurred while installing ruby-oci8 (2.1.5), and Bundler cannot continue.
  Make sure that `gem install ruby-oci8 -v '2.1.5'` succeeds before bundling.
  </code></pre>
  
  <p>I did everything from about every site and forum (especially from here).  This one I feel like was the closest... <a href="http://jigyasamakkar.com/ruby-oci8-with-rails-3-1-on-ubuntu/">http://jigyasamakkar.com/ruby-oci8-with-rails-3-1-on-ubuntu/</a></p>
  
  <p>What is the best way to solve this issue?</p>