# Please help unable to install hpricot gem

**URL:** <https://www.ruby-forum.com/t/please-help-unable-to-install-hpricot-gem/113871>\
**Category:** Ruby\
**Created:** [September 5, 2007, 8:29pm UTC](https://www.ruby-forum.com/t/please-help-unable-to-install-hpricot-gem/113871 "2007-09-05T20:29:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![boza](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3bc359/32.png) [@boza](https://www.ruby-forum.com/u/boza)\
**Post date:** [September 5, 2007, 8:29pm UTC](https://www.ruby-forum.com/t/please-help-unable-to-install-hpricot-gem/113871/1 "2007-09-05T20:29:47Z")

</div>

Hello everyone, this is my first post, I’m from Costa Rica I’ve been  
learning ruby for a couple of months now, now to the point.

I’ve been trying to install the hpricot gem but every time I get this:  
Select which gem to install for your platform (universal-darwin8.0)

1. hpricot 0.6 (mswin32)
2. hpricot 0.6 (jruby)
3. hpricot 0.6 (ruby)
4. hpricot 0.5 (ruby)
5. hpricot 0.5 (mswin32)
6. Skip this gem
7. Cancel installation

> 3  
> 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 hpricot  
checking for main() in -lc… no  
creating Makefile

make  
sh: line 1: make: command not found

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

I removed the hpricot folder a couple of times but I still get the error  
message when trying to install…

I don’t know what to do, PLEASE HELP!!!

---

<div class="post-metadata">

**Author:** ![boza](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3bc359/32.png) [@boza](https://www.ruby-forum.com/u/boza)\
**Post date:** [September 5, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/please-help-unable-to-install-hpricot-gem/113871/2 "2007-09-05T20:40:57Z")

</div>

On Sep 5, 2007, at 1:29 PM, Jose B. wrote:

> Hello everyone, this is my first post, I’m from Costa Rica I’ve been  
> learning ruby for a couple of months now, now to the point.
> 
> I’ve been trying to install the hpricot gem but every time I get this:

Looks like you need to install the Xcode developer tools:

[http://developer.apple.com/tools/xcode/](http://developer.apple.com/tools/xcode/)

Hope this helps,

Lyle

---

<div class="post-metadata">

**Author:** ![boza](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3bc359/32.png) [@boza](https://www.ruby-forum.com/u/boza)\
**Post date:** [September 5, 2007, 8:43pm UTC](https://www.ruby-forum.com/t/please-help-unable-to-install-hpricot-gem/113871/3 "2007-09-05T20:43:57Z")

</div>

On 9/5/07, Jose B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 1. hpricot 0.5 (mswin32)
> 
> I removed the hpricot folder a couple of times but I still get the error  
> message when trying to install…
> 
> ## I don’t know what to do, PLEASE HELP!!!
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

It can’t find make. You need to be sure that make or an equivalent is  
in  
your path. I think OSX uses GCC so it might just be a path issue. I  
don’t  
have much experience developing on the Mac though so I’m not sure.

–  
“Hey brother Christian with your high and mighty errand, Your actions  
speak  
so loud, I can’t hear a word you’re saying.”

-Greg Graffin (Bad Religion)

---

<div class="post-metadata">

**Author:** ![boza](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3bc359/32.png) [@boza](https://www.ruby-forum.com/u/boza)\
**Post date:** [September 5, 2007, 8:45pm UTC](https://www.ruby-forum.com/t/please-help-unable-to-install-hpricot-gem/113871/4 "2007-09-05T20:45:13Z")

</div>

Lyle J. wrote:

> Looks like you need to install the Xcode developer tools:
> 
> [http://developer.apple.com/tools/xcode/](http://developer.apple.com/tools/xcode/)
> 
> Hope this helps,
> 
> Lyle

Probably I will try that, but I’ve been able to install other gems

---

<div class="post-metadata">

**Author:** ![boza](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3bc359/32.png) [@boza](https://www.ruby-forum.com/u/boza)\
**Post date:** [September 5, 2007, 8:50pm UTC](https://www.ruby-forum.com/t/please-help-unable-to-install-hpricot-gem/113871/5 "2007-09-05T20:50:59Z")

</div>

On Sep 5, 2007, at 1:45 PM, Jose B. wrote:

> Probably I will try that, but I’ve been able to install other gems.

Yes; the difference is most likely that those other gems didn’t  
include any C/C++ extension code that needed to be compiled. Hpricot  
does depend on some C code, so you need the developer tools.

---

<div class="post-metadata">

**Author:** ![boza](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3bc359/32.png) [@boza](https://www.ruby-forum.com/u/boza)\
**Post date:** [September 5, 2007, 8:49pm UTC](https://www.ruby-forum.com/t/please-help-unable-to-install-hpricot-gem/113871/6 "2007-09-05T20:49:58Z")

</div>

On 9/5/07, Jose B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Probably I will try that, but I’ve been able to install other gems  
> This gem, like a small handful of others, requires compiling some C  
> extensions.

Todd

---

<div class="post-metadata">

**Author:** ![boza](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3bc359/32.png) [@boza](https://www.ruby-forum.com/u/boza)\
**Post date:** [September 5, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/please-help-unable-to-install-hpricot-gem/113871/7 "2007-09-05T20:51:59Z")

</div>

The xcode stuff should have the tools you need to compile the gems (any  
of  
them).

On 9/5/07, Jose B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ## Probably I will try that, but I’ve been able to install other gems
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

–  
“Hey brother Christian with your high and mighty errand, Your actions  
speak  
so loud, I can’t hear a word you’re saying.”

-Greg Graffin (Bad Religion)

---

<div class="post-metadata">

**Author:** ![boza](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3bc359/32.png) [@boza](https://www.ruby-forum.com/u/boza)\
**Post date:** [September 5, 2007, 8:58pm UTC](https://www.ruby-forum.com/t/please-help-unable-to-install-hpricot-gem/113871/8 "2007-09-05T20:58:00Z")

</div>

Sorry that was poorly worded, like Lyle said you need to be able to  
compile  
C code for some gems. This can also be a pain for Windows people.

On 9/5/07, Glen H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > [http://developer.apple.com/tools/xcode/](http://developer.apple.com/tools/xcode/)
> 
> –  
> “Hey brother Christian with your high and mighty errand, Your actions  
> speak  
> so loud, I can’t hear a word you’re saying.”
> 
> -Greg Graffin (Bad Religion)

–  
“Hey brother Christian with your high and mighty errand, Your actions  
speak  
so loud, I can’t hear a word you’re saying.”

-Greg Graffin (Bad Religion)

---

<div class="post-metadata">

**Author:** ![boza](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3bc359/32.png) [@boza](https://www.ruby-forum.com/u/boza)\
**Post date:** [September 5, 2007, 9:00pm UTC](https://www.ruby-forum.com/t/please-help-unable-to-install-hpricot-gem/113871/9 "2007-09-05T21:00:09Z")

</div>

Thank you Lyle and Greg I’ll install the xcode tools
