Ruby gem 'ruby oci8' returning Error: 'OCI.DLL: 126(The specified module could not be found. ) (LoadError)'
<p>My platform:
 - Ruby 2.2.2p95 (2015-04-13 revision 50295) [x64-mingw32]
 - Windows 7 64bit</p>

<p>I have install Oracle Instant client i.e. the following:</p>

<ul>
<li>Oracle SDK</li>
<li>Oracle SQLPLUS</li>
<li>Oracle windows (I have the user variable path pointing to when Oracle windows install client oci.dll is installed - C:\Users\joebloggs\Documents\oracle\oracle_windows\instantclient_12_1)</li>
</ul>

<p>And Ruby gems:</p>

<ul>
<li>'ruby-oci8'</li>
<li>'activerecord'</li>
<li>'activerecord-oracle_enhanced-adapter'</li>
</ul>

<p>When I run my code to try before I even call this method from activerecord ActiveRecord::Base.establish_connection(...) I encounter the following error:</p>

<pre><code>OCI.DLL: 126(The specified module could not be found.  ) (LoadError)
C:/Users/joebloggs/Documents/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/Users/joebloggs/Documents/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' 
C:/Users/joebloggs/Documents/Ruby22-x64/lib/ruby/gems/2.2.0/gems/ruby-oci8-2.2.1-x64-mingw32/lib/oci8.rb:72:in `&lt;top (required)&gt;'
</code></pre>

<p>I cannot see where the problem is. The PATH user variable is correctly set to where the oci.dll is in the Oracle Windows directory. Can anyone please help?</p>

<p>Many thanks, Irvz.</p>