Hi I'm not 100% sure but I think you might have to install nmake.
On Jan 22, 8:17 pm, Jag <jag.jag...@gmail.com> wrote: > Hi, > After installing Ruby 1.8.6 (Also tried 1.9) > then followed the steps > > gem update --system > gem install watir > > getting this error with ruby1.9 > > ERROR: Error installing watir: > ERROR: Failed to build gem native extension. > > C:/Ruby19/bin/ruby.exe extconf.rb > checking for strncpy_s()... *** 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:/Ruby19/bin/ruby > C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:362:in `try_do': The complier failed > to generat > e an executable file. (RuntimeError) > You have to install development tools first. > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:415:in `try_link0' > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:419:in `try_link' > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:527:in `try_func' > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:772:in `block in > have_func' > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:668:in `block in > checking_for' > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) > in postpo > ne' > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:248:in `open' > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:274:in `block in > postpone' > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:248:in `open' > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:270:in `postpone' > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:667:in `checking_for' > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:771:in `have_func' > from extconf.rb:9:in `<main>' > > Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/ > win32-api- > 1.4.5 for inspection. > Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/win32-api-1.4.5/ > ext/gem_mak > e.out -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general