From: Alex Fenton Date: 2009-02-20T08:34:45+09:00 Subject: Re: "You have to install development tools first." Windows Alexandre Alex wrote: > I'm having some trouble with mkmf. > > I'm on Ruby 1.9.1, Windows > > Each time I try to use have_library (pretty sure it's not the only > method that doesn't work..), it raises errors: > > C:/ruby191/lib/ruby/1.9.1/mkmf.rb:362:in `try_do': The complier failed > to genera > te an executable file. (RuntimeError) > You have to install development tools first. I'd guess this means that you have to install a C-compiler, specifically, the one that was used to compile your ruby. Check the output of "ruby -v". If it looks like "mswin32" then Microsoft's C Compiler (MSVC) is what you need. If it looks like "mingw32" then MingW is what you need. If you have some choice, then I'd see if a MingW build fits your needs. It's smaller and self-contained. There's numerous places you can go, but the wxRuby project is currently offering a ready-to-go Ruby-1.9 with compilation tools for other libraries: http://rubyforge.org/frs/download.php/51354/wxruby-1.9.10-ruby-1.9.1-mingw32-setup.exe alex