Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
dbrady@robomonkey:~/lmp/market (sprint)$ ruby -e 'require "rubygems"; require "trollop"; puts Trollop.class'
dbrady@robomonkey:~/lmp/market (sprint)$ ruby -e 'require "rubygems"; require "nokogiri"; puts Nokogiri.class'
dbrady@robomonkey:~/lmp/market (sprint)$ cd
dbrady@robomonkey:~ $ ruby -e 'require "rubygems"; require "trollop"; puts Trollop.class'
dbrady@robomonkey:~ $ ruby -e 'require "rubygems"; require "nokogiri"; puts Nokogiri.class'
./nokogiri.rb:4: uninitialized constant Nokogiri (NameError)
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
from -e:1
### EDIT: Problem solved. I had a file called nokogiri.rb in my home folder that was intercepting the nokogiri library load.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment