# Help watir

**URL:** <https://rubytalk.org/t/help-watir/52783>\
**Category:** ruby-talk\
**Created:** [10 April 2009 14:03 UTC](https://rubytalk.org/t/help-watir/52783 "2009-04-10T14:03:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruby\_Student1](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@Ruby\_Student1](https://rubytalk.org/u/Ruby_Student1)\
**Post date:** [10 April 2009 14:03 UTC](https://rubytalk.org/t/help-watir/52783/1 "2009-04-10T14:03:12Z")

</div>

Hello team,

While attempting to install watir I came across the following errors.  
Any help will be appreciated.

Thank you

ruby -v  
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mingw32]

gem -v  
1.3.1

gem install watir  
Building native extensions. This could take a while...  
ERROR: Error installing watir:  
ERROR: Failed to build gem native extension.

F:/ruby/bin/ruby.exe extconf.rb install watir  
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:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-dir  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-dir  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-include  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-include=${opt-dir}/include  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-lib  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-lib=${opt-dir}/lib  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-make-prog  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-make-prog  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--srcdir=.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--curdir  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--ruby=F:/ruby/bin/ruby  
F:/ruby/lib/ruby/1.9.1/mkmf.rb:362:in `try\_do': The complier failed to  
generate an executable file. (RuntimeError)  
You have to install development tools first.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from F:/ruby/lib/ruby/1.9.1/mkmf.rb:415:in `try\_link0'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from F:/ruby/lib/ruby/1.9.1/mkmf.rb:419:in `try\_link'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from F:/ruby/lib/ruby/1.9.1/mkmf.rb:527:in `try\_func'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from F:/ruby/lib/ruby/1.9.1/mkmf.rb:772:in `block in have\_func'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from F:/ruby/lib/ruby/1.9.1/mkmf.rb:668:in `block in checking\_for'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from F:/ruby/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in  
postpone'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from F:/ruby/lib/ruby/1.9.1/mkmf.rb:248:in `open'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from F:/ruby/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from F:/ruby/lib/ruby/1.9.1/mkmf.rb:248:in `open'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from F:/ruby/lib/ruby/1.9.1/mkmf.rb:270:in `postpone'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from F:/ruby/lib/ruby/1.9.1/mkmf.rb:667:in `checking\_for'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from F:/ruby/lib/ruby/1.9.1/mkmf.rb:771:in `have\_func'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from extconf.rb:9:in `\<main\>'

Gem files will remain installed in  
F:/ruby/lib/ruby/gems/1.9.1/gems/win32-api-1.4.0 for inspection.  
Results logged to  
F:/ruby/lib/ruby/gems/1.9.1/gems/win32-api-1.4.0/ext/gem\_make.out  
Updating class cache with 1396 classes...

> **···**
>
> --  
> Ruby Student

---

<div class="post-metadata">

**Author:** ![Nigel\_Hennan](https://avatars.discourse-cdn.com/v4/letter/n/aeb1de/32.png) [@Nigel\_Hennan](https://rubytalk.org/u/Nigel_Hennan)\
**Post date:** [11 April 2009 22:06 UTC](https://rubytalk.org/t/help-watir/52783/2 "2009-04-11T22:06:00Z")

</div>

Hi there,

I don't think Watir is working with Ruby 1.9.1 yet, and will be happy to  
know about.

If you want to a simple way to get a Watir up running with Ruby 1.8.6  
&nbsp;&nbsp;[http://www.itest2.com/articles/2009/02/27/easy-setup-watir-with-pror-on-windows/](http://www.itest2.com/articles/2009/02/27/easy-setup-watir-with-pror-on-windows/)

Nigel

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Ruby\_Student1](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@Ruby\_Student1](https://rubytalk.org/u/Ruby_Student1)\
**Post date:** [13 April 2009 15:04 UTC](https://rubytalk.org/t/help-watir/52783/3 "2009-04-13T15:04:15Z")

</div>

Nigel, Thank you for your reply. I guess I'll wait until it works on 1.9.1.  
That;s the Ruby version I have these days.

> **···**
>
> On Sat, Apr 11, 2009 at 6:06 PM, Nigel Hennan \<nigel.hennan@gmail.com\>wrote:
> 
> > Hi there,
> > 
> > I don't think Watir is working with Ruby 1.9.1 yet, and will be happy to  
> > know about.
> > 
> > If you want to a simple way to get a Watir up running with Ruby 1.8.6
> > 
> > [http://www.itest2.com/articles/2009/02/27/easy-setup-watir-with-pror-on-windows/](http://www.itest2.com/articles/2009/02/27/easy-setup-watir-with-pror-on-windows/)
> > 
> > Nigel  
> > --  
> > Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).
> 
> --  
> Ruby Student
