Forum: Ruby need help installing sqlite3 on windows

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A0315c44da71ab3eefa7ddb6a352ccd3?d=identicon&s=25 Greg Halsey (greg)
on 2006-05-20 00:25
Here is what I tried:

Downloaded sqlite3.dll and placed in c:\windows\system32 (I also tried
it in c:\ruby\bin).

C:\>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" install -r sqlite3-ruby
Attempting remote installation of 'sqlite3-ruby'
Select which gem to install for your platform (i386-mswin32)
 1. sqlite3-ruby 1.1.0 (mswin32)
 2. sqlite3-ruby 1.1.0 (ruby)
 3. sqlite3-ruby 1.0.1 (ruby)
 4. sqlite3-ruby 1.0.1 (mswin32)
 5. sqlite3-ruby 1.0.0 (mswin32)
 6. sqlite3-ruby 1.0.0 (ruby)
 7. sqlite3-ruby 0.9.0 (ruby)
 8. sqlite3-ruby 0.9.0 (mswin32)
 9. sqlite3-ruby 0.6.0 (ruby)
 10. sqlite3-ruby 0.5.0 (ruby)
 11. Cancel installation
> 1
Successfully installed sqlite3-ruby-1.1.0-mswin32
Installing RDoc documentation for sqlite3-ruby-1.1.0-mswin32...

lib/sqlite3/database.rb:637:65: Skipping require of dynamic string:
"sqlite3/dri
ver/#{driver.to_s.downcase}/driver"

lib/sqlite3/database.rb:642:59: Skipping require of dynamic string:
"sqlite3/dri
ver/#{d.downcase}/driver"

C:\>irb
irb(main):001:0> require 'sqlite3'
=> false
irb(main):002:0>

It doesn't seem to want to load.

I can get it to work through the ODBC driver, but it doesn't seem like
the best way to use sqlite3.

-thanks
0b561a629b87f0bbf71b45ee5a48febb?d=identicon&s=25 Dave Burt (Guest)
on 2006-05-20 00:37
(Received via mailing list)
greg halsey wrote:
> Here is what I tried:
> <snip>

A successful installation.

> C:\>irb
> irb(main):001:0> require 'sqlite3'
> => false
> irb(main):002:0>
>
> It doesn't seem to want to load.

It loaded. The return value of require doesn't mean much. Try this:

irb(main):002:0> SQLite3
=> SQLite3

See, the class is there, you're good to go.

Cheers,
Dave
A0315c44da71ab3eefa7ddb6a352ccd3?d=identicon&s=25 Greg Halsey (greg)
on 2006-05-20 05:42
Dave Burt wrote:
>> C:\>irb
>> irb(main):001:0> require 'sqlite3'
>> => false
>> irb(main):002:0>
> It loaded. The return value of require doesn't mean much. Try this:
>
> irb(main):002:0> SQLite3
> => SQLite3
>
> See, the class is there, you're good to go.
>
> Cheers,
> Dave

Looking at the post I noticed the code should have the first two letters
uppercase.

irb(main):001:0> require 'SQlite3'
=> true

Time to try it out.
Thanks
This topic is locked and can not be replied to.