sqlite的问题。。。 为什么一require就出错了

sqlite的问题。。。 为什么一require就出错了

我require 'sqlite'就出现以下错误

LoadError:126; ?????????????
d:/ruby/lib/ruby/gems/1.8/gems/sqlite-ruby-2.2.3-mswin32/lib/sqlite_api.so
    from d:/ruby/lib/ruby/gems/1.8/gems/sqlite-ruby-2.2.3-mswin32/lib/sqlite_api.so
    from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
    from d:/ruby/lib/ruby/gems/1.8/gems/sqlite-ruby-2.2.3-mswin32/lib/sqlite/database.rb:34
    from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
    from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
    from d:/ruby/lib/ruby/gems/1.8/gems/sqlite-ruby-2.2.3-mswin32/lib/sqlite.rb:33
    from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
    from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
    from (irb):6
    from :0



使用sqlite3则 require 'sqlite3'的时候到不出错 创建Database的实例的时候出错了 

irb(main):009:0> dbh = SQLite3:atabase.new 'd:/rubywory/jnjj.db3'
RuntimeError: unknown error
    from d:/ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize'
    from d:/ruby/lib/ruby/1.8/dl/import.rb:29:in `dlopen'
    from d:/ruby/lib/ruby/1.8/dl/import.rb:29:in `dlload'
    from d:/ruby/lib/ruby/1.8/dl/import.rb:27:in `each'
    from d:/ruby/lib/ruby/1.8/dl/import.rb:27:in `dlload'
    from d:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-mswin32/lib/sqlite3/driver/dl/api.rb:63
    from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    from d:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-mswin32/lib/sqlite3/driver/dl/driver.rb:33
    from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    from d:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-mswin32/lib/sqlite3/database.rb:643:in `load_driver'
    from d:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-mswin32/lib/sqlite3/database.rb:641:in `each'
    from d:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-mswin32/lib/sqlite3/database.rb:641:in `load_driver'
    from d:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-mswin32/lib/sqlite3/database.rb:107:in `initialize'
    from (irb):9:in `new'
    from (irb):9
    from :0irb(main):010:0>
没用过sqlite,纯支持~
试试看 sudo gem install sqlite3-ruby
不用sudo 因为我是在windows系统下 呵呵