Problem loading driver with dbi, 1.8.x

Discussion in 'Ruby' started by Daniel Berger, Mar 1, 2004.

  1. Hi all,

    ruby-dbi 0.21
    Ruby 1.8.1
    Solaris 9

    Something about the DBI module doesn't like Ruby 1.8.x. Specifically,
    when I try to load the oracle-0.2.11 driver or the Ruby9i driver, I
    get this:

    >ruby dbitest.rb

    /opt/lib/ruby/site_ruby/1.8/dbi/dbi.rb:490:in `load_driver': is not a
    class/module (TypeError)
    from /opt/lib/ruby/site_ruby/1.8/dbi/dbi.rb:392:in
    `_get_full_driver'
    from /opt/lib/ruby/site_ruby/1.8/dbi/dbi.rb:372:in `connect'

    This does not happen with the OCI8 driver, nor does it happen with
    1.6.8. I dug into the source some but didn't follow where exactly the
    problem was. I also heard that this happens with the mysql driver.

    Any ideas?

    Regards,

    Dan
    Daniel Berger, Mar 1, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. snacktime

    postgres dbd driver for ruby dbi

    snacktime, Sep 23, 2005, in forum: Ruby
    Replies:
    0
    Views:
    93
    snacktime
    Sep 23, 2005
  2. Peter Vanderhaden

    DBI - error loading driver

    Peter Vanderhaden, Nov 11, 2007, in forum: Ruby
    Replies:
    2
    Views:
    114
    Peter Vanderhaden
    Nov 11, 2007
  3. Gordon Muirhead

    DBI:ODBC on Vista: "could not load driver"

    Gordon Muirhead, Dec 19, 2008, in forum: Ruby
    Replies:
    1
    Views:
    131
    Roger Pack
    Dec 22, 2008
  4. Tim Haynes
    Replies:
    3
    Views:
    132
    Ron Reidy
    Sep 13, 2003
  5. gavino

    perl dbi driver for microsoft sql?

    gavino, Aug 15, 2006, in forum: Perl Misc
    Replies:
    12
    Views:
    267
    John Bokma
    Aug 21, 2006
Loading...

Share This Page