title: require: cannot load such file -- mysql2
body: <p>I know there are few questions like this, but non of them seems is solving my problem.
  I have a script that I want to run - <code>my_script.rb</code>
  I am using <code>ruby-2.0.0-p353</code> and <code>rubygems 2.2.2</code>
  I have installed it via <code>rvm</code>. When switch to use my custom-made gemset , <code>gem env</code> says:</p>
  
  <pre><code>RubyGems Environment:
    - RUBYGEMS VERSION: 2.2.2
    - RUBY VERSION: 2.0.0 (2013-11-22 patchlevel 353) [x86_64-linux]
  </code></pre>
  
  <p>I use in my_script.rb:</p>
  
  <pre><code>#!/usr/bin/env ruby
  # -*- coding: utf-8 -*-
  
  require 'mysql2'
  </code></pre>
  
  <p>I have installed the gems via bundler and the gem list is saying:</p>
  
  <pre><code>Installing i18n (0.6.9) 
  Installing multi_json (1.8.2) 
  Installing activesupport (3.2.8) 
  Installing builder (3.0.4) 
  Installing activemodel (3.2.8) 
  Installing activerecord (3.2.8) 
  Installing treetop (1.4.15) 
  Installing mime (0.2.0) 
  Installing mysql2 (0.3.14) 
  Using bundler (1.3.5)
  Your bundle is complete!
  It was installed into ./vendor/bundle
  </code></pre>
  
  <p>Note: <code>my_script.rb</code> and <code>/vendor/bundle</code> are in the same directory</p>
  
  <p>And now <strong>the question</strong>:</p>
  
  <p><strong>Then why it is saying</strong>:</p>
  
  <pre><code>kernel_require.rb:55:in `require': cannot load such file -- mysql2 (LoadError)
  </code></pre>
  
  <p>when I try to run my script with <code>./my_script</code></p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>An update to myself :)
  If this error occurs, try running a script with <code>bundle exec</code> as this was the primary intention of installing gems in bundle :)
  I have been running the script the same way as I have used to on my server, but so I have forgot the most obvious and logical way - to run it with <code>bundle exec ./my_script.rb</code> as this was the primary goal for this ;)</p>