# Can not install sqlite3-ruby

**URL:** <https://www.ruby-forum.com/t/can-not-install-sqlite3-ruby/151947>\
**Category:** Rails\
**Created:** [October 28, 2008, 10:30am UTC](https://www.ruby-forum.com/t/can-not-install-sqlite3-ruby/151947 "2008-10-28T10:30:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khaled\_mahmud\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ecccb3/32.png) [@Khaled\_mahmud\_K](https://www.ruby-forum.com/u/Khaled_mahmud_K)\
**Post date:** [October 28, 2008, 10:30am UTC](https://www.ruby-forum.com/t/can-not-install-sqlite3-ruby/151947/1 "2008-10-28T10:30:45Z")

</div>

Hi Friends,

I could not setup sqlite3. When I type “gem install sqlite3-ruby  
–version 1.2.4” in the command prompt. The following problem is  
arising.

C:\>gem install sqlite3-ruby --version 1.2.4  
Building native extensions. This could take a whileâ€¦  
ERROR: Error installing sqlite3-ruby:  
ERROR: Failed to build gem native extension.

c:/ruby/bin/ruby.exe extconf.rb install sqlite3-ruby  
checking for fdatasync() in rt.libâ€¦ no  
checking for sqlite3.hâ€¦ no

nmake  
â€˜nmakeâ€™ is not recognized as an internal or external command,  
operable program or batch file.

Gem files will remain installed in  
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4 for inspection.  
Results logged to  
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3\_  
api/gem\_make.out

after that I went to that specific folder  
(“C:\ruby\lib\ruby\gems\1.8\gems”) and saw there is already a folder  
named “sqlite3-ruby-1.2.4” installed.

Please help me. I am very much interested to work with Ruby on Rails but  
I could not work with that because of that problem.

Thanks in advance.

Roni

---

<div class="post-metadata">

**Author:** ![Khaled\_mahmud\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ecccb3/32.png) [@Khaled\_mahmud\_K](https://www.ruby-forum.com/u/Khaled_mahmud_K)\
**Post date:** [October 28, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/can-not-install-sqlite3-ruby/151947/2 "2008-10-28T15:31:16Z")

</div>

Khaled mahmud Khaled wrote:

> Hi Friends,
> 
> I could not setup sqlite3. When I type “gem install sqlite3-ruby  
> –version 1.2.4” in the command prompt. The following problem is  
> arising.

On Windows, I think you need 1.2.3 - so you should do:  
gem install sqlite3-ruby --version 1.2.3

That should get it working.

Cheers,  
Mohit.  
10/28/2008 | 10:29 PM.
