From: John Fink Date: 2006-08-02T23:09:58+09:00 Subject: Re: debugging bad gems? ------=_Part_103633_6461788.1154527792259 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/2/06, Jim Weirich wrote: > > John Fink wrote: > > [...] However, neither of these two gems work. For sruby I get the > > following in irb: > > > >>> require 'sru' > > LoadError: no such file to load -- sru > > from (irb):1:in `require' > > from (irb):1 > > The fact that there is no reference to RubyGem's custom_require in your > backtrace leads me to suspect that you don't have RubyGems loaded. Put > an explicit "require 'rubygems'" in the code, use the -rubygems switch > on the command line, or set the RUBYOPT environment variable to > 'rubygems'. > > > > > The marc gem does require correctly, but when it comes time to execute > > the > > sample code listed I get the following error from irb: > > > > reader = MARC::Reader.new('batch.dat') > > > > NameError: uninitialized constant MARC::Reader > > from (irb):2 > > from :0 > > Don't know about this, but I would double check the RubyGems issue first > before pursuing other options. > > -- Jim Weirich > > -- > Posted via http://www.ruby-forum.com/. Did require 'rubygems' in irb -- now require 'sru' returns false instead of choking like it did earlier. Still doesn't work though, natch. MARC fails in the same way. Weirdness. jf ------=_Part_103633_6461788.1154527792259--