# Problem configuring database with rubyonrails

**URL:** <https://www.ruby-forum.com/t/problem-configuring-database-with-rubyonrails/175460>\
**Category:** Rails\
**Created:** [September 14, 2009, 10:14am UTC](https://www.ruby-forum.com/t/problem-configuring-database-with-rubyonrails/175460 "2009-09-14T10:14:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![YevlempySHarsh\_Verm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/e19adc/32.png) [@YevlempySHarsh\_Verm](https://www.ruby-forum.com/u/YevlempySHarsh_Verm)\
**Post date:** [September 14, 2009, 10:14am UTC](https://www.ruby-forum.com/t/problem-configuring-database-with-rubyonrails/175460/1 "2009-09-14T10:14:37Z")

</div>

Hi,

I was trying to configure sqlite3 as a backend to work with  
rubyonrails.

> > First i did yum install sqlite and got the package installed.  
> > Then i did .I got an error message:

Building native extensions. This could take a while…  
ERROR: Error installing sqlite:  
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb install sqlite  
can’t find header files for ruby.

Gem files will remain installed in  
/usr/lib/ruby/gems/1.8/gems/sqlite-2.0.1  
for inspection.  
Results logged to  
/usr/lib/ruby/gems/1.8/gems/sqlite-2.0.1/ext/gem\_make.out

> > Then i did and got an error message:

WARNING: Installing to ~/.gem since /usr/lib/ruby/gems/1.8 and  
/usr/bin aren’t both writable.  
WARNING: You don’t have /home/yevlempy/.gem/ruby/1.8/bin in your PATH,  
gem executables will not run.  
Building native extensions. This could take a while…  
ERROR: Error installing sqlite3-ruby:  
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb install sqlite3-ruby  
can’t find header files for ruby.

Gem files will remain installed in  
/home/yevlempy/.gem/ruby/1.8/gems/sqlite3-ruby-1.2.5 for inspection.  
Results logged to  
/home/yevlempy/.gem/ruby/1.8/gems/sqlite3-ruby-1.2.5/ext/sqlite3\_api/gem\_make.out.

I am new to rubyonrails if anyone can help.I use fedora as linux distro.

Thanks,  
Regards,  
Yevlempy|Harsh Verma

–  
yevlempy | Harsh Verma

> **[Yevlempy](https://yevlempy.wordpress.com/)**
>
> Life Love Linux

---

<div class="post-metadata">

**Author:** ![YevlempySHarsh\_Verm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/e19adc/32.png) [@YevlempySHarsh\_Verm](https://www.ruby-forum.com/u/YevlempySHarsh_Verm)\
**Post date:** [September 14, 2009, 10:21am UTC](https://www.ruby-forum.com/t/problem-configuring-database-with-rubyonrails/175460/2 "2009-09-14T10:21:38Z")

</div>

On Sep 14, 7:29 am, " Yevlempy(Harsh Verma)" [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> /usr/bin/ruby extconf.rb install sqlite3-ruby  
> can’t find header files for ruby.

That is the right gem. You need to install the package that has the  
ruby development headers. Often called something like ruby-dev or ruby-  
devel (probably also for sqlite3)

Fred
