From: Jun Young Date: 2010-02-06T04:16:21+09:00 Subject: Re: weird action of 'nokogiri' library on Snow Leopard On 2월6일, 오전3시43분, Ben Bleything wrote: > On Fri, Feb 5, 2010 at 10:35 AM, junyoung wrote: > > I can just execute and load 'nokogiri' library only on irb not A > > source. > > > what's problems on my situation? > > Most likely because you do not requirerubygems > > rubygems in your script. Snow > Leopard's default irbrc (in /etc/irbrc) takes care of that for you. > > Add a "require 'rubygems'" above your "require 'nokogiri'" and you > should be fine., > > Ben Okay ben, thanks for your replay. it makes my script working. but, I am still wondering why it didn't work. I installed the library by using gems. why I have to load 'rubygems' library also before calling 'nokogiri'??