# Where to put ruby.h?

**URL:** <https://www.ruby-forum.com/t/where-to-put-ruby-h/75452>\
**Category:** Ruby\
**Created:** [March 1, 2006, 10:22pm UTC](https://www.ruby-forum.com/t/where-to-put-ruby-h/75452 "2006-03-01T22:22:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [March 1, 2006, 10:22pm UTC](https://www.ruby-forum.com/t/where-to-put-ruby-h/75452/1 "2006-03-01T22:22:16Z")

</div>

I install ruby via a binary rpm, however I have a requirement to provide  
swig with the ruby header file. Where in the directory structure should  
I put it? “/usr/lib/ruby/1.8/include”? “/usr/lib/ruby”?

Regards,  
Jim

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [March 1, 2006, 11:08pm UTC](https://www.ruby-forum.com/t/where-to-put-ruby-h/75452/2 "2006-03-01T23:08:38Z")

</div>

On Mar 1, 2006, at 1:22 PM, James B. wrote:

> I install ruby via a binary rpm, however I have a requirement to  
> provide  
> swig with the ruby header file. Where in the directory structure  
> should  
> I put it? “/usr/lib/ruby/1.8/include”? “/usr/lib/ruby”?

ruby.h should always be here:

ruby -rrbconfig -e ‘puts Config::CONFIG[“archdir”]’

–  
Eric H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [March 2, 2006, 5:21am UTC](https://www.ruby-forum.com/t/where-to-put-ruby-h/75452/3 "2006-03-02T05:21:54Z")

</div>

Eric H. wrote:

> ruby.h should always be here:
> 
> ruby -rrbconfig -e ‘puts Config::CONFIG[“archdir”]’

Thank you.

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [March 2, 2006, 3:18pm UTC](https://www.ruby-forum.com/t/where-to-put-ruby-h/75452/4 "2006-03-02T15:18:37Z")

</div>

> Eric H. wrote:
> 
> > ruby.h should always be here:
> > 
> > ruby -rrbconfig -e ‘puts Config::CONFIG[“archdir”]’

After the light went on I installed the ruby-devel-1.8.4-1.c4.i386.rpm  
for  
CentOS4, which provided everything I needed and put it all in the right  
places.
