ruby debugger shows error Tracer is not a class (TypeError)

Solution Verified - Updated -

Issue

  • While trying to run the ruby debugger with 'ruby -rdebug' getting the following error that seems to be caused by a module/class name conflict in /usr/lib/ruby/1.8/debug.rb.

  • Sample output:

# ruby -rdebug /usr/sbin/nick
/usr/lib/ruby/1.8/tracer.rb:16: Tracer is not a class (TypeError)
    from /usr/lib/ruby/1.8/debug.rb:10:in `require'
    from /usr/lib/ruby/1.8/debug.rb:10

Environment

  • Red Hat Enterprise Linux (RHEL) 6.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content