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.