cannot load such file — bundler/setup (LoadError)
大概有近一年没有加新的gem包,什么都没动就是加了2个gem,bundle install 就报错了。
花了不少时间,原来是gem版本低了,要升级。开源的软件,有条件的话,还是早点升级好。
花了不少时间,原来是gem版本低了,要升级。开源的软件,有条件的话,还是早点升级好。
ion/releases/20210516135724$ ~/.rvm/bin/rvm ruby-2.6.3@persimmon do bundle install Traceback (most recent call last): 22: from /home/deploy/.rvm/rubies/ruby-2.6.3/bin/bundle:23:in `<main>' 21: from /home/deploy/.rvm/rubies/ruby-2.6.3/bin/bundle:23:in `load' 20: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/bundler-1.17.2/exe/bundle:22:in `<top (required)>' 19: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/friendly_errors.rb:124:in `with_friendly_errors' 18: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/bundler-1.17.2/exe/bundle:30:in `block in <top (required)>' 17: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/cli.rb:18:in `start' 16: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/base.rb:466:in `start' 15: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/cli.rb:27:in `dispatch' 14: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' 13: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' 12: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run' 11: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/cli.rb:234:in `install' 10: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/settings.rb:143:in `temporary' 9: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/cli.rb:235:in `block in install' 8: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/cli/install.rb:53:in `run' 7: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 6: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 5: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/fetcher.rb:3:in `<top (required)>' 4: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 3: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 2: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/vendored_persistent.rb:18:in `<top (required)>' 1: from /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' /home/deploy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- bundler/vendor/net-http-persistent/lib/net/http/persistent (LoadError)
After spend a lot time, trying follow these answers actually after code below it worked for me. Before do it just but be sure that there is no problem in update :)
gem update --system
阅读量: 913
发布于:
修改于:
发布于:
修改于: