# Sqlite3.dll problem

**URL:** <https://www.ruby-forum.com/t/sqlite3-dll-problem/134595>\
**Category:** Rails\
**Created:** [April 12, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/sqlite3-dll-problem/134595 "2008-04-12T17:26:30Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranadion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@ranadion](https://www.ruby-forum.com/u/ranadion)\
**Post date:** [April 12, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/sqlite3-dll-problem/134595/1 "2008-04-12T17:26:30Z")

</div>

Hi I’m triying to begin developing in ruby on rails, and I’ve instaled  
all the components but there is a problem with the file sqlite3.dll.  
When I try to execute my first example in my web browser apears an alert  
that says sqlite3.dll is not found.  
I’m working on windows XP with firefox and the server is WEBrick.

If someone knows how can I resolve the problem please response.  
Thanks for reading 🙂

---

<div class="post-metadata">

**Author:** ![ranadion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@ranadion](https://www.ruby-forum.com/u/ranadion)\
**Post date:** [April 13, 2008, 2:02am UTC](https://www.ruby-forum.com/t/sqlite3-dll-problem/134595/2 "2008-04-13T02:02:47Z")

</div>

IÃ±aki Garcia wrote:

> Hi I’m triying to begin developing in ruby on rails, and I’ve instaled  
> all the components but there is a problem with the file sqlite3.dll.  
> When I try to execute my first example in my web browser apears an alert  
> that says sqlite3.dll is not found.  
> I’m working on windows XP with firefox and the server is WEBrick.
> 
> If someone knows how can I resolve the problem please response.  
> Thanks for reading 🙂

You must put sqlite3.dll file into directory c:\windows\system32

klodus

---

<div class="post-metadata">

**Author:** ![ranadion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@ranadion](https://www.ruby-forum.com/u/ranadion)\
**Post date:** [April 13, 2008, 2:11am UTC](https://www.ruby-forum.com/t/sqlite3-dll-problem/134595/3 "2008-04-13T02:11:31Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Klodus K. wrote:

|  
| You must put sqlite3.dll file into directory c:\windows\system32

No, no, no. You must not put anything into %windir%\system32, ever.

It is enough if the sqlite3.dll is somewhere in your path. It’s best if  
it is in the lib dir of the SQLite3 gem.

In my case that would be:  
C:\dev\ruby\lib\ruby\gems\1.8\gems\sqlite3-ruby-1.2.1-x86-mswin32\lib  
(notice that the sqlite3\_api.so is residing there, too).

* * *

Phillip G.  
Twitter: [twitter.com/cynicalryan](http://twitter.com/cynicalryan)

~ “You don’t get to be mom if you can’t fix everything just right.”

- -Calvin  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.8 (MingW32)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org](http://enigmail.mozdev.org)

iEYEARECAAYFAkgBT4gACgkQbtAgaoJTgL+nXQCeODKcso3veWInghaii11rEaz3  
jzYAmQHz3Bx95Bzy67Lfm4QvUEbK9ECH  
=B01o  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![ranadion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@ranadion](https://www.ruby-forum.com/u/ranadion)\
**Post date:** [April 14, 2008, 8:17am UTC](https://www.ruby-forum.com/t/sqlite3-dll-problem/134595/4 "2008-04-14T08:17:47Z")

</div>

Thanks it’s finally working

---

<div class="post-metadata">

**Author:** ![ranadion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@ranadion](https://www.ruby-forum.com/u/ranadion)\
**Post date:** [April 13, 2008, 3:42am UTC](https://www.ruby-forum.com/t/sqlite3-dll-problem/134595/5 "2008-04-13T03:42:13Z")

</div>

[http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite](http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite)

On Apr 12, 8:10 pm, Phillip G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![ranadion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@ranadion](https://www.ruby-forum.com/u/ranadion)\
**Post date:** [June 2, 2010, 5:13pm UTC](https://www.ruby-forum.com/t/sqlite3-dll-problem/134595/6 "2010-06-02T17:13:42Z")

</div>

Just curious why it wouldn’t be installed when you type gem install…  
and maybe helping to post where to get it since it doesn’t come with the  
install

Harry S. wrote:

> @Phillip G.  
> Personnally, it did not work to put sqlite3.dll in  
> \ruby\lib\ruby\gems\1.8\gems\sqlite3-ruby-1.2.1-x86-mswin32\lib  
> nor  
> \ruby\gems\1.8\gems\sqlite3-ruby-1.2.5-x86-mingw32\lib\1.8  
> where there is sqlite3\_api.so  
> nor  
> \ruby\lib\ruby\gems\1.8\gems\sqlite3-ruby-1.2.5-x86-mingw32\lib\sqlite3\driver\dl  
> where there is api.rb
> 
> Finally I put it in /ruby/bin/ …
> 
> H  
> [http://harryseldon.thinkosphere.com](http://harryseldon.thinkosphere.com)

---

<div class="post-metadata">

**Author:** ![ranadion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@ranadion](https://www.ruby-forum.com/u/ranadion)\
**Post date:** [June 2, 2010, 5:20pm UTC](https://www.ruby-forum.com/t/sqlite3-dll-problem/134595/7 "2010-06-02T17:20:50Z")

</div>

this link doesn’t work

Carlos Aguayo wrote:

> [http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite](http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite)
> 
> On Apr 12, 8:10 pm, Phillip G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![ranadion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@ranadion](https://www.ruby-forum.com/u/ranadion)\
**Post date:** [August 14, 2010, 9:30am UTC](https://www.ruby-forum.com/t/sqlite3-dll-problem/134595/8 "2010-08-14T09:30:22Z")

</div>

Will Kriski wrote:

> this link doesn’t work
> 
> Carlos Aguayo wrote:
> 
> > [http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite](http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite)
> > 
> > On Apr 12, 8:10 pm, Phillip G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Hi,In my case  
I use Ruby 1.9.1  
OS is WindowsXP SP3

Solution  
1.Go to [SQLite Download Page](http://www.sqlite.org/download.html)  
and Download file sqlitedll-3\_7\_0\_1.zip (265.19 KiB)  
unzip then we will get sqlite3.dll  
2.copy sqlite3.dll to your bin folder as C:\Ruby191\bin  
then it works

armoilla

---

<div class="post-metadata">

**Author:** ![ranadion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@ranadion](https://www.ruby-forum.com/u/ranadion)\
**Post date:** [December 24, 2009, 7:04pm UTC](https://www.ruby-forum.com/t/sqlite3-dll-problem/134595/9 "2009-12-24T19:04:55Z")

</div>

@Phillip G.  
Personnally, it did not work to put sqlite3.dll in  
\ruby\lib\ruby\gems\1.8\gems\sqlite3-ruby-1.2.1-x86-mswin32\lib  
nor  
\ruby\gems\1.8\gems\sqlite3-ruby-1.2.5-x86-mingw32\lib\1.8  
where there is sqlite3\_api.so  
nor  
\ruby\lib\ruby\gems\1.8\gems\sqlite3-ruby-1.2.5-x86-mingw32\lib\sqlite3\driver\dl  
where there is api.rb

Finally I put it in /ruby/bin/ …

H  
[http://harryseldon.thinkosphere.com](http://harryseldon.thinkosphere.com)

---

<div class="post-metadata">

**Author:** ![ranadion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@ranadion](https://www.ruby-forum.com/u/ranadion)\
**Post date:** [September 8, 2010, 12:04am UTC](https://www.ruby-forum.com/t/sqlite3-dll-problem/134595/10 "2010-09-08T00:04:26Z")

</div>

Thanks @Armoilla for this nice solution. Yes, it works.

---

<div class="post-metadata">

**Author:** ![ranadion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@ranadion](https://www.ruby-forum.com/u/ranadion)\
**Post date:** [September 24, 2010, 11:56pm UTC](https://www.ruby-forum.com/t/sqlite3-dll-problem/134595/11 "2010-09-24T23:56:00Z")

</div>

This doesn’t seem to be working for me.

Ruby 1.9.2  
Windows XP

I have the sqlite3.dll in my ruby/bin dir but I still get the error  
“The procedure entry point sqlite3\_column\_database\_name could not be  
located in the dynamic link library sqlite3.dll.” when I run " rails  
server" from the command prompt.

Any ideas?

I tried putting the .dll in both system32 and the other lib folder as  
suggested in this thread.

Thanks!  
Andre

Armoilla Armoilla wrote:

> Will Kriski wrote:
> 
> > this link doesn’t work
> > 
> > Carlos Aguayo wrote:
> > 
> > > [http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite](http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite)
> > > 
> > > On Apr 12, 8:10 pm, Phillip G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
> 
> Hi,In my case  
> I use Ruby 1.9.1  
> OS is WindowsXP SP3
> 
> Solution  
> 1.Go to [SQLite Download Page](http://www.sqlite.org/download.html)  
> and Download file sqlitedll-3\_7\_0\_1.zip (265.19 KiB)  
> unzip then we will get sqlite3.dll  
> 2.copy sqlite3.dll to your bin folder as C:\Ruby191\bin  
> then it works
> 
> armoilla

---

<div class="post-metadata">

**Author:** ![ranadion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@ranadion](https://www.ruby-forum.com/u/ranadion)\
**Post date:** [September 25, 2010, 12:39am UTC](https://www.ruby-forum.com/t/sqlite3-dll-problem/134595/12 "2010-09-25T00:39:04Z")

</div>

On Sep 24, 6:56 pm, Andre S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Any ideas?

That indicates the dll is from a old version of sqlite3. Please try to  
use SQLite 3.6.16 or greater, as indicated by the gem install sqlite3-  
ruby:

C:\Users\Luis\>gem install sqlite3-ruby  
Temporarily enhancing PATH to include DevKit…

=============================================================================

You’ve installed the binary version of sqlite3-ruby.  
It was built using SQLite3 version 3.6.23.1.  
It’s recommended to use the exact same version to avoid potential  
issues.

At the time of building this gem, the necessary DLL files where  
available  
in the following download:

[http://www.sqlite.org/sqlitedll-3\_6\_23\_1.zip](http://www.sqlite.org/sqlitedll-3_6_23_1.zip)

You can put the sqlite3.dll available in this package in your Ruby  
bin  
directory, for example C:\Ruby\bin

=============================================================================

Successfully installed sqlite3-ruby-1.3.1-x86-mingw32  
1 gem installed

> I tried putting the .dll in both system32 and the other lib folder as  
> suggested in this thread.

Do not put files in system32, XP is not Windows 3.1

–  
Luis L.

---

<div class="post-metadata">

**Author:** ![ranadion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@ranadion](https://www.ruby-forum.com/u/ranadion)\
**Post date:** [July 10, 2014, 5:32am UTC](https://www.ruby-forum.com/t/sqlite3-dll-problem/134595/13 "2014-07-10T05:32:44Z")

</div>

Take [AdF.ly - Suspended](http://adf.ly/pNptT) and copy to C:\windows\system32\ it’s ok all  
problem

---

<div class="post-metadata">

**Author:** ![ranadion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@ranadion](https://www.ruby-forum.com/u/ranadion)\
**Post date:** [April 19, 2011, 3:15am UTC](https://www.ruby-forum.com/t/sqlite3-dll-problem/134595/14 "2011-04-19T03:15:35Z")

</div>

also you can read  
[http://www.juan-capristan.net/blog/?p=173](http://www.juan-capristan.net/blog/?p=173)

for an explanation an guidance
