Skip to content

cannot load such file -- /Users/jedrek/.rvm/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/bundler-2.4.19/exe/bundle (LoadError) #7005

@jedrekdomanski

Description

@jedrekdomanski

Describe the problem as clearly as you can

On clean ruby 2.7.7 installed by RVM a default bundler v. 2.1.4 gem is installed. I need more recent version of the gem so I install it by running gem install bundler:2.4.19 --default. Then I try to install the gems bundle isntall and I get an error

cannot load such file -- /Users/jedrek/.rvm/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/bundler-2.4.19/exe/bundle (LoadError)

I check the bundler versions and it looks like I have two versions installed both set as default gem. How can two gems be set as default? Why is the old one not unset as default automatically?

gem info bundler

*** LOCAL GEMS ***

bundler (2.4.19, 2.1.4)
    Authors: André Arko, Samuel Giddins, Colby Swandale, Hiroshi
    Shibata, David Rodríguez, Grey Baker, Stephanie Morillo, Chris
    Morris, James Wen, Tim Moore, André Medeiros, Jessica Lynn Suttles,
    Terence Lee, Carl Lerche, Yehuda Katz
    Homepage: https://bundler.io
    License: MIT
    Installed at (2.4.19, default): /Users/jedrek/.rvm/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0
                 (2.1.4, default): /Users/jedrek/.rvm/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0

Did you try upgrading RubyGems?

Yes, but it failed

gem update --system
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    bad response Forbidden 403 (https://jedrekdomanski:[email protected]/REDACTED/specs.4.8.gz)

Post steps to reproduce the problem

Which command did you run?

What were you expecting to happen?

What actually happened?

Run gem env and paste the output below

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions