# sqlite3....Ugghhh\`

**URL:** <https://discuss.rubyonrails.org/t/sqlite3-ugghhh/43593>\
**Category:** rubyonrails-talk\
**Created:** [June 19, 2009, 1:54am UTC](https://discuss.rubyonrails.org/t/sqlite3-ugghhh/43593 "2009-06-19T01:54:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohit\_Sindhwani](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@Mohit\_Sindhwani](https://discuss.rubyonrails.org/u/Mohit_Sindhwani)\
**Post date:** [June 19, 2009, 1:54am UTC](https://discuss.rubyonrails.org/t/sqlite3-ugghhh/43593/1 "2009-06-19T01:54:24Z")

</div>

Derek Smith wrote:

> Hi all,
> 
> I have been reading and trying all the google links/forums for 2 nights now on how to fix my issue with getting sqlite3 installed so I can use rails. Im running SLED 11. plese help! thank you!
> 
> $ uname -a Linux linux-7lbv 2.6.27.19-5-pae #1 SMP 2009-02-28 04:40:21 +0100 i686 i686 i386 GNU/Linux
> 
> $ gem install sqlite3-ruby Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: &nbsp;&nbsp;ERROR: Failed to build gem native extension.
> 
> /usr/bin/ruby extconf.rb checking for fdatasync() in -lrt... yes checking for sqlite3.h... no &nbsp;&nbsp;

You need to install the development set for SQLite3 since the gem has a native build. From:

> **[Install SQLite3 in Ubuntu](https://theplana.wordpress.com/2007/05/11/install-sqlite3-on-ubuntu/)**
>
> Install Sqlite3 sudo apt-get install sqlite3 libsqlite3-dev sudo gem install sqlite3-ruby To create a data base, we only need to create a empty file. touch database\_name\_dev.db touch database\_name\_…

you need to do the equivalent of the below step:

\* Install Sqlite3 sudo apt-get install sqlite3 libsqlite3-dev sudo gem install sqlite3-ruby

I'm sorry I'm a limited Linux user (and mostly use Ubuntu there).

Cheers Mohit.

---

<div class="post-metadata">

**Author:** ![Mohit\_Sindhwani](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@Mohit\_Sindhwani](https://discuss.rubyonrails.org/u/Mohit_Sindhwani)\
**Post date:** [June 22, 2009, 3:25pm UTC](https://discuss.rubyonrails.org/t/sqlite3-ugghhh/43593/2 "2009-06-22T15:25:26Z")

</div>

Derek Smith wrote:

> The solution was on SLED 11. Thank you for pointing me in the right direction! &nbsp;&nbsp; Glad to.

Cheers, Mohit. 6/22/2009 | 11:25 PM.
