Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Can't install hpricot gem

Reply
Thread Tools

Can't install hpricot gem

 
 
Boris Barroso
Guest
Posts: n/a
 
      04-21-2009
I can't install hpricot gem on CentOS 5, you can check the error message
at this address http://dpaste.com/36490/, I have tried many things like
reinstalling ruby ruby-devel I have installed almost all things needed,
zlib zlib-devel and others.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Eric Hodel
Guest
Posts: n/a
 
      04-22-2009
On Apr 21, 2009, at 15:40, Boris Barroso wrote:

> I can't install hpricot gem on CentOS 5, you can check the error
> message
> at this address http://dpaste.com/36490/, I have tried many things
> like
> reinstalling ruby ruby-devel I have installed almost all things
> needed,
> zlib zlib-devel and others.


What is your ruby version?

I suspect it is too old. Try with 1.8.6.

 
Reply With Quote
 
 
 
 
Ruby Student
Guest
Posts: n/a
 
      04-22-2009
[Note: parts of this message were removed to make it a legal post.]

On Tue, Apr 21, 2009 at 11:45 PM, Eric Hodel <> wrote:

> On Apr 21, 2009, at 15:40, Boris Barroso wrote:
>
> I can't install hpricot gem on CentOS 5, you can check the error message
>> at this address http://dpaste.com/36490/, I have tried many things like
>> reinstalling ruby ruby-devel I have installed almost all things needed,
>> zlib zlib-devel and others.
>>

>
> What is your ruby version?
>
> I suspect it is too old. Try with 1.8.6.
>
>

I, also, can't installed hpricot on Windows/XP, and I have the latest Ruby
installed:
C:\>ruby -v
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mingw32]

C:\>gem install hpricot
Building native extensions. This could take a while...
ERROR: Error installing hpricot:
ERROR: Failed to build gem native extension.

C:/ruby/bin/ruby.exe extconf.rb install hpricot
checking for main() in -lc... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/ruby/bin/ruby
--with-hpricot_scan-dir
--without-hpricot_scan-dir
--with-hpricot_scan-include
--without-hpricot_scan-include=${hpricot_scan-dir}/include
--with-hpricot_scan-lib
--without-hpricot_scan-lib=${hpricot_scan-dir}/lib
--with-clib
--without-clib
C:/ruby/lib/ruby/1.9.1/mkmf.rb:362:in `try_do': The complier failed to
generate an executable file. (RuntimeError)
You have to install development tools first.
from C:/ruby/lib/ruby/1.9.1/mkmf.rb:415:in `try_link0'
from C:/ruby/lib/ruby/1.9.1/mkmf.rb:419:in `try_link'
from C:/ruby/lib/ruby/1.9.1/mkmf.rb:527:in `try_func'
from C:/ruby/lib/ruby/1.9.1/mkmf.rb:723:in `block in have_library'
from C:/ruby/lib/ruby/1.9.1/mkmf.rb:668:in `block in checking_for'
from C:/ruby/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in
postpone'
from C:/ruby/lib/ruby/1.9.1/mkmf.rb:248:in `open'
from C:/ruby/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone'
from C:/ruby/lib/ruby/1.9.1/mkmf.rb:248:in `open'
from C:/ruby/lib/ruby/1.9.1/mkmf.rb:270:in `postpone'
from C:/ruby/lib/ruby/1.9.1/mkmf.rb:667:in `checking_for'
from C:/ruby/lib/ruby/1.9.1/mkmf.rb:718:in `have_library'
from extconf.rb:4:in `<main>'


Gem files will remain installed in
C:/ruby/lib/ruby/gems/1.9.1/gems/hpricot-0.8.1 for inspection.
Results logged to
C:/ruby/lib/ruby/gems/1.9.1/gems/hpricot-0.8.1/ext/hpricot_scan/gem_make.out


Regards,

--
Ruby Student

 
Reply With Quote
 
Boris Barroso
Guest
Posts: n/a
 
      04-22-2009
Boris Barroso wrote:
> I can't install hpricot gem on CentOS 5, you can check the error message
> at this address http://dpaste.com/36490/, I have tried many things like
> reinstalling ruby ruby-devel I have installed almost all things needed,
> zlib zlib-devel and others.


Hi there I have installed ruby enterprise and now I can isntall there
hpricot and other gems that I could not install, ther might be some
problems with the ruby version in CentOS 5 (1.8.5)
Thanx for the help
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Ruby Student
Guest
Posts: n/a
 
      04-22-2009
[Note: parts of this message were removed to make it a legal post.]

On Wed, Apr 22, 2009 at 9:32 AM, Boris Barroso <> wrote:

> Boris Barroso wrote:
> > I can't install hpricot gem on CentOS 5, you can check the error message
> > at this address http://dpaste.com/36490/, I have tried many things like
> > reinstalling ruby ruby-devel I have installed almost all things needed,
> > zlib zlib-devel and others.

>
> Hi there I have installed ruby enterprise and now I can isntall there
> hpricot and other gems that I could not install, ther might be some
> problems with the ruby version in CentOS 5 (1.8.5)
> Thanx for the help
> --
> Posted via http://www.ruby-forum.com/.
>
>

What's Ruby "enterprise"?

--
Ruby Student

 
Reply With Quote
 
Rick DeNatale
Guest
Posts: n/a
 
      04-22-2009
[Note: parts of this message were removed to make it a legal post.]

On Wed, Apr 22, 2009 at 9:49 AM, Ruby Student <>wrote:

> On Wed, Apr 22, 2009 at 9:32 AM, Boris Barroso <>
> wrote:
>
> > Boris Barroso wrote:
> > > I can't install hpricot gem on CentOS 5, you can check the error

> message
> > > at this address http://dpaste.com/36490/, I have tried many things

> like
> > > reinstalling ruby ruby-devel I have installed almost all things needed,
> > > zlib zlib-devel and others.

> >
> > Hi there I have installed ruby enterprise and now I can isntall there
> > hpricot and other gems that I could not install, ther might be some
> > problems with the ruby version in CentOS 5 (1.8.5)
> > Thanx for the help
> > --
> > Posted via http://www.ruby-forum.com/.
> >
> >

> What's Ruby "enterprise"?
>


Basically, it's a version of Ruby 1.8.x with some changes (primarily a
garbage collector which supports copy-on-write) which reduces the overall
memory footprint of multiple Ruby processes for Rails/Merb/Sinatra or other
rack-based web server deployments.

http://www.rubyenterpriseedition.com/faq.html

--
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/pers...-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

 
Reply With Quote
 
Ruby Student
Guest
Posts: n/a
 
      04-22-2009
[Note: parts of this message were removed to make it a legal post.]

On Wed, Apr 22, 2009 at 9:56 AM, Rick DeNatale <>wrote:

> On Wed, Apr 22, 2009 at 9:49 AM, Ruby Student <
> >wrote:

>
> > On Wed, Apr 22, 2009 at 9:32 AM, Boris Barroso <>
> > wrote:
> >
> > > Boris Barroso wrote:
> > > > I can't install hpricot gem on CentOS 5, you can check the error

> > message
> > > > at this address http://dpaste.com/36490/, I have tried many things

> > like
> > > > reinstalling ruby ruby-devel I have installed almost all things

> needed,
> > > > zlib zlib-devel and others.
> > >
> > > Hi there I have installed ruby enterprise and now I can isntall there
> > > hpricot and other gems that I could not install, ther might be some
> > > problems with the ruby version in CentOS 5 (1.8.5)
> > > Thanx for the help
> > > --
> > > Posted via http://www.ruby-forum.com/.
> > >
> > >

> > What's Ruby "enterprise"?
> >

>
> Basically, it's a version of Ruby 1.8.x with some changes (primarily a
> garbage collector which supports copy-on-write) which reduces the overall
> memory footprint of multiple Ruby processes for Rails/Merb/Sinatra or other
> rack-based web server deployments.
>
> http://www.rubyenterpriseedition.com/faq.html
>
> --
> Rick DeNatale
>
> Blog: http://talklikeaduck.denhaven2.com/
> Twitter: http://twitter.com/RickDeNatale
> WWR: http://www.workingwithrails.com/pers...-rick-denatale
> LinkedIn: http://www.linkedin.com/in/rickdenatale
>


Interesting!Thank you for the explanation!

--
Ruby Student

 
Reply With Quote
 
Eric Hodel
Guest
Posts: n/a
 
      04-22-2009
On Apr 22, 2009, at 06:18, Ruby Student wrote:
> I, also, can't installed hpricot on Windows/XP, and I have the
> latest Ruby installed:
> C:\>gem install hpricot
> Building native extensions. This could take a while...
> ERROR: Error installing hpricot:
> ERROR: Failed to build gem native extension.
>
> [...]
> C:/ruby/lib/ruby/1.9.1/mkmf.rb:362:in `try_do': The complier failed to
> generate an executable file. (RuntimeError)
> You have to install development tools first.


Seems pretty clear to me.

 
Reply With Quote
 
Ruby Student
Guest
Posts: n/a
 
      04-22-2009
[Note: parts of this message were removed to make it a legal post.]

On Wed, Apr 22, 2009 at 2:34 PM, Eric Hodel <> wrote:

> On Apr 22, 2009, at 06:18, Ruby Student wrote:
>
>> I, also, can't installed hpricot on Windows/XP, and I have the latest Ruby
>> installed:
>> C:\>gem install hpricot
>> Building native extensions. This could take a while...
>> ERROR: Error installing hpricot:
>> ERROR: Failed to build gem native extension.
>>
>> [...]
>> C:/ruby/lib/ruby/1.9.1/mkmf.rb:362:in `try_do': The complier failed to
>> generate an executable file. (RuntimeError)
>> You have to install development tools first.
>>

>
> Seems pretty clear to me.
>
>

Yes! It is also clear to me. What is not clear, to me, is which "development
tools" I need to install.
Thank you

--
Ruby Student

 
Reply With Quote
 
Marcel Corso
Guest
Posts: n/a
 
      02-10-2010
On ubuntu 9.10 I had to install the ruby-dev package

sudo apt-get install ruby1.8-dev
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Install Hpricot gem failure flebber Ruby 2 10-11-2010 03:54 PM
Please help unable to install hpricot gem Jose Boza Ruby 5 09-05-2007 07:00 PM
RubyGems 0.9.1 calling a gem with gem '<gem>' Austin 7873 Ruby 5 01-27-2007 10:05 PM
gem.cmd install RMagick-win32-1.9.2-mswin32.gem: Buffer error Clifford Heath Ruby 7 06-09-2006 07:02 PM
[GEM PATCH] allow gem to install bin file to different location Ara.T.Howard Ruby 0 10-26-2005 11:52 PM



Advertisments