Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Peter Chu
cannot ceate database [ reply ]  
2009-08-05 08:00
Hi,

I am using Windows Vista and have installed the gem sqlite3-ruby and also sqlite3. Every time I tried to create a new database inside irb, I received the following error, can anyone help?

>> require 'sqlite3'
=> true
>> db = SQLite3::Database.new('employees.db')
RuntimeError: unknown error
from C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize'
from C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlopen'
from C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlload'
from C:/Ruby/lib/ruby/1.8/dl/import.rb:27:in `each'
from C:/Ruby/lib/ruby/1.8/dl/import.rb:27:in `dlload'
from C:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.5-x86-mswin32/lib/sqlite3/driver/dl/api.rb:31
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from C:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.5-x86-mswin32/lib/sqlite3/driver/dl/driver.rb:1
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from C:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.5-x86-mswin32/lib/sqlite3/database.rb:619:in `load_driver'
from C:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.5-x86-mswin32/lib/sqlite3/database.rb:617:in `each'
from C:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.5-x86-mswin32/lib/sqlite3/database.rb:617:in `load_driver'
from C:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.5-x86-mswin32/lib/sqlite3/database.rb:72:in `initialize'
from (irb):2:in `new'
from (irb):2>> exit