# Problem installing gems

**URL:** <https://rubytalk.org/t/problem-installing-gems/63604>\
**Category:** ruby-talk\
**Created:** [15 September 2011 11:06 UTC](https://rubytalk.org/t/problem-installing-gems/63604 "2011-09-15T11:06:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mario\_Ruiz1](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@Mario\_Ruiz1](https://rubytalk.org/u/Mario_Ruiz1)\
**Post date:** [15 September 2011 11:06 UTC](https://rubytalk.org/t/problem-installing-gems/63604/1 "2011-09-15T11:06:31Z")

</div>

I cannot install gem files on windows 7 running ruby 1.8.7  
I tried to install watir-webdriver -v0.3.3 or selenium-webdriver -v0.2.2  
but I got this message:

Building native extensions. This could take a while...  
ERROR: Error installing watir-webdriver:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ERROR: Failed to build gem native extension.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c:/ruby/bin/ruby.exe extconf.rb  
checking for rb\_thread\_blocking\_region()... no  
checking for ruby\_thread\_has\_gvl\_p()... no  
checking for ruby\_native\_thread\_p()... no  
checking for rb\_thread\_call\_with\_gvl()... no  
creating extconf.h  
creating Makefile

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/ffi-1.0.9 for  
inspection.  
Results logged to  
c:/ruby/lib/ruby/gems/1.8/gems/ffi-1.0.9/ext/ffi\_c/gem\_make.out

any idea how to solve this?

Thanks in advance

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

---

<div class="post-metadata">

**Author:** ![Darryl\_L\_Pierce](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Darryl\_L\_Pierce](https://rubytalk.org/u/Darryl_L_Pierce)\
**Post date:** [15 September 2011 11:21 UTC](https://rubytalk.org/t/problem-installing-gems/63604/2 "2011-09-15T11:21:55Z")

</div>

nmake is the Micorosoft Visual Studio make tool. Do you have Visual  
Studio installed?

> **···**
>
> On Thu, Sep 15, 2011 at 08:06:31PM +0900, Mario Ruiz wrote:
> 
> > I cannot install gem files on windows 7 running ruby 1.8.7  
> > I tried to install watir-webdriver -v0.3.3 or selenium-webdriver -v0.2.2  
> > but I got this message:
> > 
> > Building native extensions. This could take a while...  
> > ERROR: Error installing watir-webdriver:  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ERROR: Failed to build gem native extension.
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c:/ruby/bin/ruby.exe extconf.rb  
> > checking for rb\_thread\_blocking\_region()... no  
> > checking for ruby\_thread\_has\_gvl\_p()... no  
> > checking for ruby\_native\_thread\_p()... no  
> > checking for rb\_thread\_call\_with\_gvl()... no  
> > creating extconf.h  
> > creating Makefile
> > 
> > nmake  
> > 'nmake' is not recognized as an internal or external command,  
> > operable program or batch file.
> 
> --  
> Darryl L. Pierce \<mcpierce@gmail.com\>  
> [http://mcpierce.multiply.com/](http://mcpierce.multiply.com/)  
> "What do you care what people think, Mr. Feynman?"

---

<div class="post-metadata">

**Author:** ![Phillip\_Gawlowski](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@Phillip\_Gawlowski](https://rubytalk.org/u/Phillip_Gawlowski)\
**Post date:** [15 September 2011 11:22 UTC](https://rubytalk.org/t/problem-installing-gems/63604/3 "2011-09-15T11:22:30Z")

</div>

> I cannot install gem files on windows 7 running ruby 1.8.7  
> I tried to install watir-webdriver -v0.3.3 or selenium-webdriver -v0.2.2  
> but I got this message:
> 
> Building native extensions. This could take a while...  
> ERROR: Error installing watir-webdriver:  
> ERROR: Failed to build gem native extension.

[snip]

> any idea how to solve this?

[http://rubyinstaller.org/add-ons/devkit/](http://rubyinstaller.org/add-ons/devkit/)

> **···**
>
> On Thu, Sep 15, 2011 at 1:06 PM, Mario Ruiz \<tcblues@gmail.com\> wrote:
> 
> --  
> Phillip Gawlowski
> 
> gplus.to/phgaw | twitter.com/phgaw
> 
> A method of solution is perfect if we can forsee from the start,  
> and even prove, that following that method we shall attain our aim.  
> -- Leibniz
