Unable to install libxml-ruby on Win2k3 machine

Discussion in 'Ruby' started by Sirisha Pusapati, Feb 25, 2010.

  1. Hi

    I am trying to install libxml using the command libxml-ruby and I am
    seeing the following errors.

    Building native extensions. This could take a while...
    ERROR: Error installing libxml-ruby:
    ERROR: Failed to build gem native extension.

    D:/Ruby/bin/ruby.exe -rubygems
    D:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rak
    e
    RUBYARCHDIR=D:/Ruby/lib/ruby/gems/1.8/gems/libxml-ruby-1.1.3-x86-mswin32-60/li
    b
    RUBYLIBDIR=D:/Ruby/lib/ruby/gems/1.8/gems/libxml-ruby-1.1.3-x86-mswin32-60/lib

    rake aborted!
    No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
    Rakefile.rb)
    D:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in
    `raw_load_rakefile
    '
    (See full trace by running task with --trace)


    Gem files will remain installed in
    D:/Ruby/lib/ruby/gems/1.8/gems/libxml-ruby-1.
    1.3-x86-mswin32-60 for inspection.
    Results logged to
    D:/Ruby/lib/ruby/gems/1.8/gems/libxml-ruby-1.1.3-x86-mswin32-6
    0/ext/mingw/gem_make.out


    MY PATH is

    Path=D:\Ruby\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Prog
    ram Files\Microsoft ADS\bin;C:\Program Files\Microsoft
    ADS\tools;c:\devtools;c:\
    localbin;C:\Program Files\BladeLogic\OM\bin

    Can you guys tell me what I am missing

    Thanks
    Sirisha
    --
    Posted via http://www.ruby-forum.com/.
     
    Sirisha Pusapati, Feb 25, 2010
    #1
    1. Advertising

  2. Sirisha Pusapati

    Luis Lavena Guest

    On Feb 26, 12:45 am, Sirisha Pusapati <>
    wrote:
    > Hi
    >
    > I am trying to install libxml using the command libxml-ruby and I am
    > seeing the following errors.
    >
    > Building native extensions.  This could take a while...
    > ERROR:  Error installing libxml-ruby:
    >         ERROR: Failed to build gem native extension.
    >
    > D:/Ruby/bin/ruby.exe -rubygems
    > D:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rak
    > e
    > RUBYARCHDIR=D:/Ruby/lib/ruby/gems/1.8/gems/libxml-ruby-1.1.3-x86-mswin32-60 /li
    > b
    > RUBYLIBDIR=D:/Ruby/lib/ruby/gems/1.8/gems/libxml-ruby-1.1.3-x86-mswin32-60/ lib
    >
    > rake aborted!
    > No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
    > Rakefile.rb)
    > D:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in
    > `raw_load_rakefile
    > '
    > (See full trace by running task with --trace)
    >
    > Gem files will remain installed in
    > D:/Ruby/lib/ruby/gems/1.8/gems/libxml-ruby-1.
    > 1.3-x86-mswin32-60 for inspection.
    > Results logged to
    > D:/Ruby/lib/ruby/gems/1.8/gems/libxml-ruby-1.1.3-x86-mswin32-6
    > 0/ext/mingw/gem_make.out
    >
    > MY PATH is
    >
    > Path=D:\Ruby\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C: \Prog
    > ram Files\Microsoft ADS\bin;C:\Program Files\Microsoft
    > ADS\tools;c:\devtools;c:\
    > localbin;C:\Program Files\BladeLogic\OM\bin
    >
    > Can you guys tell me what I am missing
    >


    Please provide information of the Ruby version you're using ('gem env'
    will be enough)

    Appears that you're using the VC6 build of ruby (i386-mswin32) which
    requires you have Visual C 6.0 installed (no longer available)

    Please confirm this, and if so, then I would recommend usage of
    RubyInstaller[1] packages with the DevKit[2] to get a stable Ruby
    environment with compiler.

    [1] http://rubyinstaller.org/
    [2] http://rubyinstaller.org/download.html

    --
    Luis Lavena
     
    Luis Lavena, Feb 26, 2010
    #2
    1. Advertising

  3. > Please provide information of the Ruby version you're using ('gem env'
    > will be enough)
    >
    > Appears that you're using the VC6 build of ruby (i386-mswin32) which
    > requires you have Visual C 6.0 installed (no longer available)
    >
    > Please confirm this, and if so, then I would recommend usage of
    > RubyInstaller[1] packages with the DevKit[2] to get a stable Ruby
    > environment with compiler.
    >
    > [1] http://rubyinstaller.org/
    > [2] http://rubyinstaller.org/download.html


    Hi!

    I can access the same environment Sirisha used.

    I also made some "upgrades" there, without success. The output of 'gem
    env':

    ====================
    RubyGems Environment:
    - RUBYGEMS VERSION: 1.3.6
    - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i386-mswin32]
    - INSTALLATION DIRECTORY: d:/Ruby/lib/ruby/gems/1.8
    - RUBY EXECUTABLE: d:/Ruby/bin/ruby.exe
    - EXECUTABLE DIRECTORY: d:/Ruby/bin
    - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mswin32-60
    - GEM PATHS:
    - d:/Ruby/lib/ruby/gems/1.8
    - d:/profiles/v-zpenzeli/.gem/ruby/1.8
    - GEM CONFIGURATION:
    - :update_sources => true
    - :verbose => true
    - :benchmark => false
    - :backtrace => false
    - :bulk_threshold => 1000
    - REMOTE SOURCES:
    - http://rubygems.org/
    ======================

    The interesting thing is, that rake complains about missing Rakefile...
    and indeed, the Rakefile is not under ../lib but under
    ../libxml-ruby-1.1.3-x86-mswin32-60 - I'm getting clueless... :(


    Regards,

    Zoltan

    --
    Posted via http://www.ruby-forum.com/.
     
    Zoltan Penzeli, Feb 26, 2010
    #3
  4. Sirisha Pusapati

    Luis Lavena Guest

    On Feb 26, 12:28 pm, Zoltan Penzeli <> wrote:
    > > Please provide information of the Ruby version you're using ('gem env'
    > > will be enough)

    >
    > > Appears that you're using the VC6 build of ruby (i386-mswin32) which
    > > requires you have Visual C 6.0 installed (no longer available)

    >
    > > Please confirm this, and if so, then I would recommend usage of
    > > RubyInstaller[1] packages with the DevKit[2] to get a stable Ruby
    > > environment with compiler.

    >
    > > [1]http://rubyinstaller.org/
    > > [2]http://rubyinstaller.org/download.html

    >
    > Hi!
    >
    > I can access the same environment Sirisha used.
    >
    > I also made some "upgrades" there, without success. The output of 'gem
    > env':
    >
    > ====================
    > RubyGems Environment:
    >   - RUBYGEMS VERSION: 1.3.6
    >   - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i386-mswin32]
    >   - INSTALLATION DIRECTORY: d:/Ruby/lib/ruby/gems/1.8
    >   - RUBY EXECUTABLE: d:/Ruby/bin/ruby.exe
    >   - EXECUTABLE DIRECTORY: d:/Ruby/bin
    >   - RUBYGEMS PLATFORMS:
    >     - ruby
    >     - x86-mswin32-60
    >   - GEM PATHS:
    >      - d:/Ruby/lib/ruby/gems/1.8
    >      - d:/profiles/v-zpenzeli/.gem/ruby/1.8
    >   - GEM CONFIGURATION:
    >      - :update_sources => true
    >      - :verbose => true
    >      - :benchmark => false
    >      - :backtrace => false
    >      - :bulk_threshold => 1000
    >   - REMOTE SOURCES:
    >      -http://rubygems.org/
    > ======================
    >
    > The interesting thing is, that rake complains about missing Rakefile...
    > and indeed, the Rakefile is not under ../lib but under
    > ./libxml-ruby-1.1.3-x86-mswin32-60 - I'm getting clueless... :(
    >


    Ok, seems that my previous comment wasn't clear

    libxml-ruby 1.1.3 gem, compiled binary available for download here:

    http://rubygems.org/gems/libxml-ruby/versions/1.1.3-x86-mswin32-60

    Clearly defines Rakefile as an extension:

    C:\Users\Luis\Desktop>gem spec libxml-ruby-1.1.3-x86-mswin32-60.gem
    extensions
    ---
    - ext/mingw/Rakefile

    Which means the Rakefile is going to be invoked when installed.

    Taking a look inside the gem:

    C:\Users\Luis\Desktop>gem unpack libxml-ruby-1.1.3-x86-mswin32-60.gem
    Unpacked gem: 'C:/Users/Luis/Desktop/libxml-ruby-1.1.3-x86-mswin32-60'

    And looked into ext/mingw/Rakefile, which has this note on top:

    # We can't use Ruby's standard build procedures
    # on Windows because the Ruby executable is
    # built with VC++ while here we want to build
    # with MingW. So just roll our own...

    Looking at it seems that the gem is copying files at installation
    time.

    So the Rakefile failure you're receiving is either from RubyGems not
    able to find it or from libxml gem itself.

    I cannot comment further because I'm not either author or user of
    libxml-ruby library.

    Please contact the author or report a bug to their tracking system.

    --
    Luis Lavena
     
    Luis Lavena, Feb 27, 2010
    #4
    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. Ian Gregory
    Replies:
    1
    Views:
    530
  2. Olav
    Replies:
    3
    Views:
    4,370
  3. c++student
    Replies:
    1
    Views:
    317
    Ross Bamford
    May 17, 2006
  4. Dan Stevens (IAmAI)

    Cannot install ruby gem 'libxml-ruby'

    Dan Stevens (IAmAI), Mar 1, 2007, in forum: Ruby
    Replies:
    0
    Views:
    194
    Dan Stevens (IAmAI)
    Mar 1, 2007
  5. Xeno Campanoli
    Replies:
    2
    Views:
    294
    Xeno Campanoli
    Mar 26, 2008
Loading...

Share This Page