I am trying to install mongrel_service gem on Windows (although this
problem seems to hold for any non-compiled gem). I have tried this
with Windows Server 2003 and 2008. Also with Ruby version 1.8.7 and
1.9.1 (Luis L.'s one click installer). Both with the same result.
The error message (full text below) mentions that I have to install
development tools first. I have installed MinGW and MSYS and placed
the MinGW bin into my windows path (even though I thought that the
purpose of the one click ruby installer was to also include necessary
tools to compile gems that need it).
I am about to tell my company to forget about windows, but before I
do, has anyone made it through this?
c:>gem install mongrel_service --include-dependencies --no-rdoc --no-
gem install -y is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Building native extensions. This could take a while…
ERROR: Error installing mongrel_service:
ERROR: Failed to build gem native extension.
checking for RegisterServiceCtrlHandlerEx()… *** 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:
try_do': The complier failed to genera te an executable file. (RuntimeError) You have to install development tools first. from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:417:intry_link0’
try_link' from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:529:intry_func’
block in have_func' from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:670:inblock in
block (2 levels) in postp one' from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:250:inopen’
block in postpone' from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:250:inopen’
postpone' from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:669:inchecking_for’
have_func' from extconf.rb:7:in’
Gem files will remain installed in C:/Ruby191/lib/ruby/gems/1.9.1/gems/
vice-0.5.2 for inspection.
Results logged to C:/Ruby191/lib/ruby/gems/1.9.1/gems/win32-