# Headers problem installing hpricot

**URL:** <https://www.ruby-forum.com/t/headers-problem-installing-hpricot/155781>\
**Category:** Ruby\
**Created:** [December 16, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/headers-problem-installing-hpricot/155781 "2008-12-16T19:07:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenneth\_McDonald](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/dc4da7/32.png) [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Post date:** [December 16, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/headers-problem-installing-hpricot/155781/1 "2008-12-16T19:07:10Z")

</div>

I just tried (on OS X 10.5) an install of hpricot, and was told that  
it couldn’t be compiled because the ruby headers could not be found.  
Curiously, I can install it on my notebook, which is also OS X 10.5.  
Anyone know the cure for this? Should I install the latest version of  
Ruby?

Thanks,  
Ken

---

<div class="post-metadata">

**Author:** ![Kenneth\_McDonald](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/dc4da7/32.png) [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Post date:** [December 16, 2008, 7:13pm UTC](https://www.ruby-forum.com/t/headers-problem-installing-hpricot/155781/2 "2008-12-16T19:13:38Z")

</div>

On Dec 16, 2008, at 11:58 AM, Kenneth McDonald wrote:

> I just tried (on OS X 10.5) an install of hpricot, and was told that  
> it couldn’t be compiled because the ruby headers could not be found.  
> Curiously, I can install it on my notebook, which is also OS X 10.5.  
> Anyone know the cure for this? Should I install the latest version  
> of Ruby?

You need to install Apple’s Developer Tools (Xcode). Details can be  
found here:

[http://danbenjamin.com/articles/2008/02/ruby-rails-leopard](http://danbenjamin.com/articles/2008/02/ruby-rails-leopard)

James Edward G. II
