title: `require': cannot load such file -- mail (LoadError)
body: <p>In trying to use the mail gem from <a href="http://www.geany.org/" rel="nofollow noreferrer">geany</a> I get errors as so:</p>
  
  <pre><code>/home/thufir/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mail (LoadError)
      from /home/thufir/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
      from mail.rb:3:in `&lt;main&gt;'
  
  
  ------------------
  (program exited with code: 1)
  Press return to continue
  </code></pre>
  
  <p>However, the program runs fine from the CLI:</p>
  
  <pre><code>thufir@dur:~$ 
  thufir@dur:~$ ruby ruby/mail.rb 
  hello world
  hello world
  thufir@dur:~$ 
  thufir@dur:~$ nl ruby/mail.rb 
       1  require 'yaml'
       2  require 'net/imap'
       3  require 'mail'
  
       4  2.times do
       5    puts 'hello world'
       6  end
  thufir@dur:~$ 
  thufir@dur:~$ ruby -v
  ruby 1.9.3p327 (2012-11-10 revision 37606) [i686-linux]
  thufir@dur:~$ 
  thufir@dur:~$ gem -v
  1.8.24
  thufir@dur:~$ 
  thufir@dur:~$ rvm -v
  
  rvm 1.17.2 (stable) by Wayne E. Seguin &lt;wayneeseguin@gmail.com&gt;, Michal Papis &lt;mpapis@gmail.com&gt; [https://rvm.io/]
  
  thufir@dur:~$ 
  </code></pre>
  
  <p>Why does geany have trouble with the mail gem?</p>
  
  <p>Just to confirm:</p>
  
  <pre><code>thufir@dur:~$ 
  thufir@dur:~$ type rvm | head -1
  rvm is a function
  thufir@dur:~$ 
  thufir@dur:~$ gem list --local
  
  *** LOCAL GEMS ***
  
  bundler (1.2.3)
  i18n (0.6.1)
  mail (2.5.3)
  mime-types (1.19)
  polyglot (0.3.3)
  rake (10.0.3)
  rubygems-bundler (1.1.0)
  rvm (1.11.3.5)
  treetop (1.4.12)
  thufir@dur:~$ 
  </code></pre>
  
  <p><a href="http://thread.gmane.org/gmane.editors.geany.general/7201/focus=7205" rel="nofollow noreferrer">geany mailing list question</a></p>
  
  <p><a href="https://stackoverflow.com/questions/10679196/i-cant-load-ruby-gems?rq=1">related question</a></p>