title: Error kernel_require.rb:55:in `require': cannot load such file when trying to run ruby program
body: <p>So, it seems like ruby isn't able to find gems that are installed? The error:</p>
  
  <pre><code>/Users/userName/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
   `require': cannot load such file -- activesupport (LoadError)
          from /Users/userName/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
   `require'
          from test.rb:3:in `&lt;main&gt;'
  </code></pre>
  
  <p>I had ruby installed via RVM and brew on my Mac (El Capitan). I don't remember what I had done when I started getting this error when trying to run my ruby program. At the top of my program I have require 'json' and require 'rest-client', and require 'activesupport' Nothing abnormal there.</p>
  
  <p>After a lot of googling, I ended up doing rvm implode and removing the .rvm files from my computer to completely uninstall rvm. I then tried installing ruby via brew, but was getting the same error. I then uninstalled the the brew version of ruby, and installed with rbenv. Still got the same error, but this time with the rbenv path to the kernal_require.rb file instead of the brew or rvm paths that it had showed before.</p>
  
  <p>So something tells me that this is not something to do with rvm or brew or rbenv because I was getting the same error with the versions of ruby I tried for each one. The gems are installed. Why isn't it able to load them? Uninstalling and reinstalling the gems didn't help. I had to reinstall them anyway every time I uninstalled and reinstalled ruby.</p>
  
  <p>gem env home returns this:</p>
  
  <pre><code>/Users/userName/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0
  </code></pre>
  
  <p>brew config returns this for ruby:</p>
  
  <pre><code>Ruby: /Users/userName/.rbenv/shims/ruby =&gt; /Users/userName/.rbenv/versions/2.3.0/bin/ruby
  </code></pre>
  
  <p>I have these included in my PATH:</p>
  
  <pre><code>export PATH="$HOME/.rbenv/bin:$PATH"
  eval "$(rbenv init -)"
  </code></pre>
  
  <p>ruby -v returns this:</p>
  
  <pre><code>ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
  </code></pre>
  
  <p>I've checked for spaces in the file path, I've tried installing bundler and installing gems that way, but I'm still getting the same  issue. What else can I look at to solve this problem?</p>