gem native extension installer failure on winxp pro 64 system

Discussion in 'Ruby' started by David Southwell, Aug 9, 2008.

  1. 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
     
    David Southwell, Aug 9, 2008
    #1
    1. Advertising

  2. David Southwell

    Roger Pack Guest

    David Southwell 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
    -R
    --
    Posted via http://www.ruby-forum.com/.
     
    Roger Pack, Aug 11, 2008
    #2
    1. Advertising

  3. On Monday 11 August 2008 10:22:25 Roger Pack wrote:
    > David Southwell 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
    > -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
     
    David Southwell, Aug 11, 2008
    #3
  4. David Southwell

    Roger Pack Guest

    > 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
    --
    Posted via http://www.ruby-forum.com/.
     
    Roger Pack, Aug 11, 2008
    #4
  5. David Southwell

    Eric Hodel Guest

    On Aug 9, 2008, at 06:44 AM, David Southwell 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?


    Update RubyGems (and, probably, everything else) to handle paths with
    spaces.
     
    Eric Hodel, Aug 11, 2008
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jyzhang
    Replies:
    0
    Views:
    126
    jyzhang
    Dec 1, 2006
  2. Edouard Dantes
    Replies:
    12
    Views:
    276
    Mike Dalessio
    Jan 31, 2011
  3. Ben Bb
    Replies:
    2
    Views:
    207
    Ben Bb
    Feb 9, 2009
  4. kungfu-free
    Replies:
    0
    Views:
    453
    kungfu-free
    Feb 9, 2009
  5. Tony Arcieri
    Replies:
    3
    Views:
    130
    Luis Lavena
    Feb 4, 2010
Loading...

Share This Page