[Note: parts of this message were removed to make it a legal post.]
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
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,