# Need help installing sqlite3 on windows

**URL:** <https://rubytalk.org/t/need-help-installing-sqlite3-on-windows/27584>\
**Category:** ruby-talk\
**Created:** [19 May 2006 22:25 UTC](https://rubytalk.org/t/need-help-installing-sqlite3-on-windows/27584 "2006-05-19T22:25:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greg\_Halsey](https://avatars.discourse-cdn.com/v4/letter/g/fbc32d/32.png) [@Greg\_Halsey](https://rubytalk.org/u/Greg_Halsey)\
**Post date:** [19 May 2006 22:25 UTC](https://rubytalk.org/t/need-help-installing-sqlite3-on-windows/27584/1 "2006-05-19T22:25:11Z")

</div>

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

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Dave\_Burt2](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/dave_burt2/32/2036_2.png) [@Dave\_Burt2](https://rubytalk.org/u/Dave_Burt2)\
**Post date:** [19 May 2006 22:34 UTC](https://rubytalk.org/t/need-help-installing-sqlite3-on-windows/27584/2 "2006-05-19T22:34:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Greg\_Halsey](https://avatars.discourse-cdn.com/v4/letter/g/fbc32d/32.png) [@Greg\_Halsey](https://rubytalk.org/u/Greg_Halsey)\
**Post date:** [20 May 2006 03:42 UTC](https://rubytalk.org/t/need-help-installing-sqlite3-on-windows/27584/3 "2006-05-20T03:42:17Z")

</div>

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

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).
