# Gem native extension installer failure on winxp pro 64 system

**URL:** <https://www.ruby-forum.com/t/gem-native-extension-installer-failure-on-winxp-pro-64-system/145444>\
**Category:** Ruby\
**Created:** [August 9, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/gem-native-extension-installer-failure-on-winxp-pro-64-system/145444 "2008-08-09T15:47:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [August 9, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/gem-native-extension-installer-failure-on-winxp-pro-64-system/145444/1 "2008-08-09T15:47:31Z")

</div>

Here is the shell error:  
C:\ …\> gem update  
Updating installed gems  
Updating fxruby  
Successfulyy installed fxruby-1.6.16-x86-mswin32-60  
Updating haml  
Successfully installed haml-2.0.2  
Updating hpricot  
Building Native extensions. This could take a while…  
ERROR: While executing gem… (Gem::Installer::ExyensionBuildError)  
ERROR: failed to build gem native extension

Path was given to gem.make.out file which reads:

C:/Program Files (x86)/ruby/bin/ruby.exe extconf.rb update  
‘C:/Program’ is not recognized as an internal or external command,  
operable program or batch file.

## At first glance it seems the update script does not specify path correctly specified for platform.

Does anyone know how to fix this?

David

---

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [August 11, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/gem-native-extension-installer-failure-on-winxp-pro-64-system/145444/2 "2008-08-11T19:24:47Z")

</div>

David S. wrote:

> Here is the shell error:  
> C:\ …\> gem update  
> Updating installed gems  
> Updating fxruby  
> Successfulyy installed fxruby-1.6.16-x86-mswin32-60  
> Updating haml  
> Successfully installed haml-2.0.2  
> Updating hpricot  
> Building Native extensions. This could take a while…  
> ERROR: While executing gem… (Gem::Installer::ExyensionBuildError)  
> ERROR: failed to build gem native extension
> 
> Path was given to gem.make.out file which reads:
> 
> C:/Program Files (x86)/ruby/bin/ruby.exe extconf.rb update  
> ‘C:/Program’ is not recognized as an internal or external command,  
> operable program or batch file.
> 
> ## At first glance it seems the update script does not specify path correctly specified for platform.
> 
> Does anyone know how to fix this?
> 
> David

Looks like with hpricot the latest version doesn’t come with a  
pre-compiled binary. So avoid that, or install VC6 or mingw + mingw  
ruby. Maybe 🙂  
[http://www.ruby-forum.com/topic/162401#new](http://www.ruby-forum.com/topic/162401#new)  
-R

---

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [August 11, 2008, 7:39pm UTC](https://www.ruby-forum.com/t/gem-native-extension-installer-failure-on-winxp-pro-64-system/145444/3 "2008-08-11T19:39:07Z")

</div>

On Monday 11 August 2008 10:22:25 Roger P. wrote:

> > ERROR: While executing gem… (Gem::Installer::ExyensionBuildError)  
> > specified for platform.  
> > -R  
> > VC6 is installed. This seems to be a pathing error in the install script  
> > which  
> > is looking for C:\program rather than C:\program files (86) which is  
> > the  
> > appropriate path on win 64. All other gems install fine- this problem  
> > only  
> > occurs with hpricot.

David

---

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [August 11, 2008, 7:45pm UTC](https://www.ruby-forum.com/t/gem-native-extension-installer-failure-on-winxp-pro-64-system/145444/4 "2008-08-11T19:45:06Z")

</div>

> appropriate path on win 64. All other gems install fine- this problem  
> only  
> occurs with hpricot.
> 
> David

Looks like it might be an hpricot bug then. Either hack out a fix or  
post a bug or both, I guess.  
GL.  
-R

---

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [August 12, 2008, 12:15am UTC](https://www.ruby-forum.com/t/gem-native-extension-installer-failure-on-winxp-pro-64-system/145444/5 "2008-08-12T00:15:11Z")

</div>

On Aug 9, 2008, at 06:44 AM, David S. wrote:

> ## ERROR: failed to build gem native extension
> 
> Does anyone know how to fix this?

Update RubyGems (and, probably, everything else) to handle paths with  
spaces.
