O.k., I’m running an XP SP3 box and have installed ruby 186-26 and gems
1.1.1 (Had to ditch 1.2, because I kept getting errors with it)
Anyways, funny story goes like this:
I can’t do this:
C:\WebSite\N2N>gem update
Updating installed gems
Bulk updating Gem source index for: http://gems.rubyforge.org/
Updating hpricot
Building native extensions. This could take a while…
ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
c:/ruby/bin/ruby.exe extconf.rb update
checking for stdio.h… no
*** 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
–srcdir=.
–curdir
–ruby=c:/ruby/bin/ruby
Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.6.16
1 for inspection.
Results logged to
c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.6.161/ext/fast_xs/gem
_make.out
BUT, I can do this:
C:\WebSite\N2N>gem update --system
Updating RubyGems
Bulk updating Gem source index for: http://gems.rubyforge.org/
Nothing to update
And, I successfully used gem install, to install Watir.
My current issue, is trying to install sqlit3-ruby… It just doesn’t
want to do it, and I’ve already added the 3 required files to the bin
directory.
Any ideas!? I’m familiar with stdio.h, as it’s the input/output header
for C - is it not a default header/include in windows? (Especially with
.NET and Visual Studio installed) Or does the stdio.h have to be located
in another ruby/gem dependent directory?
Thanx!