From: Tomas Korcak Date: 2010-12-23T08:12:33+09:00 Subject: Re: Problem with gems (require not working) Hassan Schroeder wrote in post #970159: > On Wed, Dec 22, 2010 at 3:03 PM, Tomas Korcak wrote: >> Hi there, >> somehow my rubygems got cripled. The problem is ruby/irb is not able to >> find/locate any of my previously installed gems. > >> 2) I will try to check it with irb (You will see that irb is not able to >> locate previously installed gem) >> orczis@korczis-nb:~/prog/smartdata/bin$ irb >> irb(main):001:0> require 'nokogiri' >> LoadError: no such file to load -- nokogiri > > OK, so what does > > irb> puts $: > > tell you? Ugh, something is cripled probably... korczis@korczis-nb:~/prog/smartdata/bin$ irb irb(main):001:0> puts $: /usr/local/lib/site_ruby/1.8 /usr/local/lib/site_ruby/1.8/i486-linux /usr/local/lib/site_ruby/1.8/i386-linux /usr/local/lib/site_ruby /usr/lib/ruby/vendor_ruby/1.8 /usr/lib/ruby/vendor_ruby/1.8/i486-linux /usr/lib/ruby/vendor_ruby /usr/lib/ruby/1.8 /usr/lib/ruby/1.8/i486-linux /usr/lib/ruby/1.8/i386-linux . => nil irb(main):002:0> puts $ SyntaxError: compile error (irb):2: syntax error, unexpected $undefined, expecting $end from (irb):2 from :0 irb(main):003:0> -- Posted via http://www.ruby-forum.com/.