John Bailey wrote:
> 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!
Sorry, forgot to include error dump from sqlite3 install:
C:\>gem install sqlite3-ruby
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
c:/ruby/bin/ruby.exe extconf.rb install sqlite3-ruby
checking for fdatasync() in rt.lib... no
checking for sqlite3.h... no
nmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.
Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1
.2.4 for inspection.
Results logged to
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_
api/gem_make.out
So, I'm missing:
nmake
stdio.h
fdatasync in rt.lib
I have VS C++ 2008 Express installed, so that negates the pretense of
not having a C compiler installed. Nmake, I'm going to d/l from
microsoft, but I doubt that that will find a resolution to these issues.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---