ruby/rubygems · error · Gem::LoadError
#{path} found in multiple gems: #{names.join ", "}
Error message
#{path} found in multiple gems: #{names.join ", "} What it means
Error "#{path} found in multiple gems: #{names.join ", "}" thrown in ruby/rubygems.
Source
Thrown at lib/rubygems/core_ext/kernel_require.rb:121
# If a and b are currently active with c being unresolved and d.rb is
# requested, then find_in_unresolved_tree will find d.rb in d because
# it's a dependency of c.
#
if found_specs.empty?
found_specs = Gem::Specification.find_in_unresolved_tree path
found_specs.each(&:activate)
# We found +path+ directly in an unresolved gem. Now we figure out, of
# the possible found specs, which one we should activate.
else
# Check that all the found specs are just different
# versions of the same gem
names = found_specs.map(&:name).uniq
if names.size > 1
raise Gem::LoadError, "#{path} found in multiple gems: #{names.join ", "}"
end
# Ok, now find a gem that has no conflicts, starting
# at the highest version.
valid = found_specs.find {|s| !s.has_conflicts? }
unless valid
le = Gem::LoadError.new "unable to find a version of '#{names.first}' to activate"
le.name = names.first
raise le
end
valid.activate
end
end
begin
gem_original_require(path)View on GitHub (pinned to 86cbb817a3)
When it happens
Trigger: Thrown at lib/rubygems/core_ext/kernel_require.rb:121 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruby/rubygems@86cbb817a3 (2026-08-23).
Data as JSON: /api/errors/66837c7115b8eec6.
Report an issue: GitHub.