# Problem with Gem

**URL:** <https://rubytalk.org/t/problem-with-gem/41121>\
**Category:** ruby-talk\
**Created:** [3 October 2007 02:42 UTC](https://rubytalk.org/t/problem-with-gem/41121 "2007-10-03T02:42:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Siebert](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@David\_Siebert](https://rubytalk.org/u/David_Siebert)\
**Post date:** [3 October 2007 02:42 UTC](https://rubytalk.org/t/problem-with-gem/41121/1 "2007-10-03T02:42:21Z")

</div>

I am trying to install support for SQLite using Gem but I get this error  
"Building native extensions. This could take a while...  
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)  
&nbsp;&nbsp;&nbsp;&nbsp;ERROR: Failed to build gem native extension.

ruby extconf.rb install sqlite3-ruby  
can't find header files for ruby."  
I do have ruby.h installed on my system but gem can not seem to find it.  
Any suggestions?

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

---

<div class="post-metadata">

**Author:** ![Eric\_Hodel1](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@Eric\_Hodel1](https://rubytalk.org/u/Eric_Hodel1)\
**Post date:** [3 October 2007 15:02 UTC](https://rubytalk.org/t/problem-with-gem/41121/2 "2007-10-03T15:02:57Z")

</div>

What does this say:

ruby -rrbconfig -e 'puts File.join(Config::CONFIG["rubylibdir"], Config::CONFIG["arch"], "ruby.h")'

> **···**
>
> On Oct 2, 2007, at 19:42 , David Siebert wrote:
> 
> > I am trying to install support for SQLite using Gem but I get this error  
> > "Building native extensions. This could take a while...  
> > ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)  
> > &nbsp;&nbsp;&nbsp;&nbsp;ERROR: Failed to build gem native extension.
> > 
> > ruby extconf.rb install sqlite3-ruby  
> > can't find header files for ruby."  
> > I do have ruby.h installed on my system but gem can not seem to find it.  
> > Any suggestions?
> 
> --  
> Poor workers blame their tools. Good workers build better tools. The  
> best workers get their tools to do the work for them. -- Syndicate Wars

---

<div class="post-metadata">

**Author:** ![degreane](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@degreane](https://rubytalk.org/u/degreane)\
**Post date:** [12 October 2007 08:00 UTC](https://rubytalk.org/t/problem-with-gem/41121/3 "2007-10-12T08:00:03Z")

</div>

it says /usr/lib/ruby/1.8/i386-linux/ruby.h  
I have the same problem while installing fxruby  
gem install fxruby  
regards

> **···**
>
> On Oct 3, 6:02 pm, Eric Hodel \<drbr...@segment7.net\> wrote:
> 
> > On Oct 2, 2007, at 19:42 , David Siebert wrote:
> > 
> > \> I am trying to install support for SQLite using Gem but I get this  
> > \> error  
> > \> "Building native extensions. This could take a while...  
> > \> ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)  
> > \> ERROR: Failed to build gem native extension.
> > 
> > \> ruby extconf.rb install sqlite3-ruby  
> > \> can't find header files for ruby."  
> > \> I do have ruby.h installed on my system but gem can not seem to  
> > \> find it.  
> > \> Any suggestions?
> > 
> > What does this say:
> > 
> > ruby -rrbconfig -e 'puts File.join(Config::CONFIG["rubylibdir"],  
> > Config::CONFIG["arch"], "ruby.h")'
> > 
> > --  
> > Poor workers blame their tools. Good workers build better tools. The  
> > best workers get their tools to do the work for them. -- Syndicate Wars

---

<div class="post-metadata">

**Author:** ![Eric\_Hodel1](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@Eric\_Hodel1](https://rubytalk.org/u/Eric_Hodel1)\
**Post date:** [12 October 2007 15:08 UTC](https://rubytalk.org/t/problem-with-gem/41121/4 "2007-10-12T15:08:28Z")

</div>

Do you have that file?

What other .h files exist in /usr/lib/ruby/1.8/i386-linux?

Can you attach gem\_make.out?

> **···**
>
> On Oct 12, 2007, at 01:00 , degreane wrote:
> 
> > On Oct 3, 6:02 pm, Eric Hodel \<drbr...@segment7.net\> wrote:
> > 
> > > On Oct 2, 2007, at 19:42 , David Siebert wrote:
> > > 
> > > > I am trying to install support for SQLite using Gem but I get this  
> > > > error  
> > > > "Building native extensions. This could take a while...  
> > > > ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;ERROR: Failed to build gem native extension.
> > > 
> > > > ruby extconf.rb install sqlite3-ruby  
> > > > can't find header files for ruby."  
> > > > I do have ruby.h installed on my system but gem can not seem to  
> > > > find it.  
> > > > Any suggestions?
> > > 
> > > What does this say:
> > > 
> > > ruby -rrbconfig -e 'puts File.join(Config::CONFIG["rubylibdir"],  
> > > Config::CONFIG["arch"], "ruby.h")'
> > 
> > it says /usr/lib/ruby/1.8/i386-linux/ruby.h  
> > I have the same problem while installing fxruby  
> > gem install fxruby
> 
> --  
> Poor workers blame their tools. Good workers build better tools. The  
> best workers get their tools to do the work for them. -- Syndicate Wars

---

<div class="post-metadata">

**Author:** ![Giles\_Bowkett](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@Giles\_Bowkett](https://rubytalk.org/u/Giles_Bowkett)\
**Post date:** [12 October 2007 15:31 UTC](https://rubytalk.org/t/problem-with-gem/41121/5 "2007-10-12T15:31:32Z")

</div>

> \> \> I am trying to install support for SQLite using Gem but I get this  
> \> \> error  
> \> \> "Building native extensions. This could take a while...  
> \> \> ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)  
> \> \> ERROR: Failed to build gem native extension.  
> \>  
> \> \> ruby extconf.rb install sqlite3-ruby  
> \> \> can't find header files for ruby."  
> \> \> I do have ruby.h installed on my system but gem can not seem to  
> \> \> find it.  
> \> \> Any suggestions?  
> \>  
> \> What does this say:  
> \>  
> \> ruby -rrbconfig -e 'puts File.join(Config::CONFIG["rubylibdir"],  
> \> Config::CONFIG["arch"], "ruby.h")'

> I have the same problem while installing fxruby  
> gem install fxruby

gem needs to be more idiot-friendly. I do not wake up a genius. I  
become one over the course of several cups of coffee, on days when I'm  
lucky.

> **···**
>
> --  
> Giles Bowkett
> 
> Blog: [http://gilesbowkett.blogspot.com](http://gilesbowkett.blogspot.com)  
> Portfolio: [http://www.gilesgoatboy.org](http://www.gilesgoatboy.org)  
> Tumblelog: [http://giles.tumblr.com/](http://giles.tumblr.com/)

---

<div class="post-metadata">

**Author:** ![Eric\_Hodel1](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@Eric\_Hodel1](https://rubytalk.org/u/Eric_Hodel1)\
**Post date:** [12 October 2007 16:01 UTC](https://rubytalk.org/t/problem-with-gem/41121/6 "2007-10-12T16:01:25Z")

</div>

If you have something constructive to contribute, please do so.

If you have found a bug, please file it in the tracker.

Empty statements of frustration do not help me make RubyGems better.

> **···**
>
> On Oct 12, 2007, at 08:31 , Giles Bowkett wrote:
> 
> > gem needs to be more idiot-friendly. I do not wake up a genius. I  
> > become one over the course of several cups of coffee, on days when I'm  
> > lucky.
> 
> --  
> Poor workers blame their tools. Good workers build better tools. The  
> best workers get their tools to do the work for them. -- Syndicate Wars

---

<div class="post-metadata">

**Author:** ![Giles\_Bowkett](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@Giles\_Bowkett](https://rubytalk.org/u/Giles_Bowkett)\
**Post date:** [12 October 2007 17:22 UTC](https://rubytalk.org/t/problem-with-gem/41121/7 "2007-10-12T17:22:52Z")

</div>

> \> gem needs to be more idiot-friendly. I do not wake up a genius. I  
> \> become one over the course of several cups of coffee, on days when I'm  
> \> lucky.
> 
> If you have something constructive to contribute, please do so.

I did. I sent Chad & Jim a patch that allows you to require symbols  
and arrays. It was nifty.

Admittedly, though, that doesn't help here at all. My bad.

> If you have found a bug, please file it in the tracker.
> 
> Empty statements of frustration do not help me make RubyGems better.

OK, ok.

> **···**
>
> --  
> Giles Bowkett
> 
> Blog: [http://gilesbowkett.blogspot.com](http://gilesbowkett.blogspot.com)  
> Portfolio: [http://www.gilesgoatboy.org](http://www.gilesgoatboy.org)  
> Tumblelog: [http://giles.tumblr.com/](http://giles.tumblr.com/)
