简体   繁体   中英

Ruby “gem generate” indexer broken with XML Builder 3.0.0. How to fix?

Problem: gem generate fails because it's missing XML Builder.

$ gem generate
  ERROR:  While executing gem ... (RuntimeError)
    Gem::Indexer requires that the XML Builder library be installed:
      gem install builder

How to fix this?

I found a solution: edit rubygem source code file indexer.rb to require the older Builder.

gem 'builder', '~> 2.1'
require 'builder/xchar'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM