title: Nokogiri won't load in script
body: <p>I'm using Ruby for the first time and have to process XML files. Nokogiri appears to be the best way to accomplish this, but I am doing something wrong.  When I load in IRb things work great:</p>
  
  <pre><code>$ irb
  2.1.0 :001 &gt; require 'nokogiri'
   =&gt; true
  2.1.0 :002 &gt; exit
  </code></pre>
  
  <p>but when I attempt the same thing from a script I get an error:</p>
  
  <pre><code>$ ./sample.rb
  ./sample.rb:3:in `require': no such file to load -- nokogiri (LoadError)
      from ./sample.rb:3
  
  $ cat sample.rb
  #!/usr/bin/ruby
  
  require 'nokogiri'
  </code></pre>
  
  <p>What is different in the script environment that prevents loading?  </p>