[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Please help unable to install hpricot gem

Jose Boza

9/5/2007 6:30:00 PM

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!!!
--
Posted via http://www.ruby-....

5 Answers

Lyle Johnson

9/5/2007 6:40:00 PM

0


On Sep 5, 2007, at 1:29 PM, Jose Boza 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:

<snip>

Looks like you need to install the Xcode developer tools:

http://developer.apple.com/to...

Hope this helps,

Lyle

Jose Boza

9/5/2007 6:45:00 PM

0

Lyle Johnson wrote:
>
> Looks like you need to install the Xcode developer tools:
>
> http://developer.apple.com/to...
>
> Hope this helps,
>
> Lyle

Probably I will try that, but I've been able to install other gems
--
Posted via http://www.ruby-....

Todd Benson

9/5/2007 6:49:00 PM

0

On 9/5/07, Jose Boza <jaboza@gmail.com> wrote:
> Lyle Johnson wrote:
> >
> > Looks like you need to install the Xcode developer tools:
> >
> > http://developer.apple.com/to...
> >
> > Hope this helps,
> >
> > Lyle
>
> 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

Lyle Johnson

9/5/2007 6:49:00 PM

0


On Sep 5, 2007, at 1:45 PM, Jose Boza 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.

Jose Boza

9/5/2007 7:00:00 PM

0

Thank you Lyle and Greg I'll install the xcode tools
--
Posted via http://www.ruby-....