# Ruby headers in mac os x

**URL:** <https://rubytalk.org/t/ruby-headers-in-mac-os-x/34251>\
**Category:** ruby-talk\
**Created:** [5 January 2007 17:35 UTC](https://rubytalk.org/t/ruby-headers-in-mac-os-x/34251 "2007-01-05T17:35:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierodancona](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@Pierodancona](https://rubytalk.org/u/Pierodancona)\
**Post date:** [5 January 2007 17:35 UTC](https://rubytalk.org/t/ruby-headers-in-mac-os-x/34251/1 "2007-01-05T17:35:05Z")

</div>

Sorry for the stupid question. I am trying to build  
rubyOSA 0.2.0 on my Mac Powerbook, OS X.4.8.  
When I run "ruby extconf.rb", following the instructions,  
I get the answer "can't find header files for ruby".  
When you stop laughing, please, tell me: what should I do?

Thanks a lot,  
Piero

---

<div class="post-metadata">

**Author:** ![Laurent\_Sansonetti1](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@Laurent\_Sansonetti1](https://rubytalk.org/u/Laurent_Sansonetti1)\
**Post date:** [6 January 2007 01:20 UTC](https://rubytalk.org/t/ruby-headers-in-mac-os-x/34251/2 "2007-01-06T01:20:49Z")

</div>

Hi Piero,

Did you install the developer tool package? IIRC you can install it  
from the Mac OS X installation DVD.

(You can check this by running 'gcc' on the terminal, if you see  
'command not found' you don't have the developer tool package.)

HTH,  
Laurent

> **···**
>
> On 1/5/07, pierodancona@gmail.com \<pierodancona@gmail.com\> wrote:
> 
> > Sorry for the stupid question. I am trying to build  
> > rubyOSA 0.2.0 on my Mac Powerbook, OS X.4.8.  
> > When I run "ruby extconf.rb", following the instructions,  
> > I get the answer "can't find header files for ruby".  
> > When you stop laughing, please, tell me: what should I do?
> > 
> > Thanks a lot,  
> > Piero

---

<div class="post-metadata">

**Author:** ![Suraj\_Kurapati1](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Suraj\_Kurapati1](https://rubytalk.org/u/Suraj_Kurapati1)\
**Post date:** [7 January 2007 02:25 UTC](https://rubytalk.org/t/ruby-headers-in-mac-os-x/34251/3 "2007-01-07T02:25:59Z")

</div>

unknown wrote:

> I am trying to build  
> rubyOSA 0.2.0 on my Mac Powerbook, OS X.4.8.  
> When I run "ruby extconf.rb", following the instructions,  
> I get the answer "can't find header files for ruby".

It is looking for the ruby.h file.

In Ubuntu/Debian I install the ruby-dev package to get those header  
files. I assume there is a similar package for Mac.

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