I am trying to install Hpricot but receive a build tools error from
gem install. However I can install nokogiri gem can actually even
figure I can’t type and fixed up my nokogirl entry.
What do I need to do with hpricot.
This is my install
C:\rubygems-1.3.7>gem install hpricot
Building native extensions. This could take a while…
ERROR: Error installing hpricot:
ERROR: Failed to build gem native extension.
C:/Ruby192/bin/ruby.exe extconf.rb
checking for stdio.h… *** 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:/Ruby192/bin/ruby
C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:368:in try_do': The complier failed to generate an executable file. (RuntimeError) You have to install development tools first. from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:452:in
try_cpp’
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:834:in block in have_header' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:693:in
block in
checking_for’
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in block (2 levels) in postpone' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in
open’
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in block in postpone' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in
open’
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:276:in postpone' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:692:in
checking_for’
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:833:in have_header' from extconf.rb:2:in
’
Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/
hpricot-0.8.2 for inspection.
Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/hpricot-0.8.2/
ext/fast_xs/gem_make.out
C:\rubygems-1.3.7>gem install try_do
ERROR: Could not find a valid gem ‘try_do’ (>= 0) in any repository
C:\rubygems-1.3.7>gem try_do hpricot
ERROR: While executing gem … (RuntimeError)
Unknown command try_do
C:\rubygems-1.3.7>gem install try_cpp
ERROR: Could not find a valid gem ‘try_cpp’ (>= 0) in any repository
C:\rubygems-1.3.7>gem install nokogirl
It’s actually spelled nokogiri, not nokogirl
Successfully installed nokogiri-1.4.3.1-x86-mingw32
Successfully installed nokogirl-1.0
2 gems installed
Installing ri documentation for nokogiri-1.4.3.1-x86-mingw32…
Installing ri documentation for nokogirl-1.0…
Installing RDoc documentation for nokogiri-1.4.3.1-x86-mingw32…
Installing RDoc documentation for nokogirl-1.0…
C:\rubygems-1.3.7>
PS package management that picks up typo’s pretty narly