Debugging bad gems?

Hey folks,

I’ve installed two gems from http://www.textualize.com – sruby (
http://www.textualize.com/sruby) and ruby-marc (
http://www.textualize.com/ruby_marc) via gem install from rubygems.org
to my
ruby 1.8 install on x86 Debian unstable. Both gems installed correctly
as
far as I could tell, and I’ve installed many other gems that worked just
dandy. 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 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

Any ideas on how to debug this, or should I just badger the folks at
textualize.com?

jf

John F. 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 W.

On 8/2/06, Jim W. [email protected] wrote:

The fact that there is no reference to RubyGem’s custom_require in your

reader = MARC::Reader.new('batch.dat')


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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs