我正在使用Ubuntu。我刚刚升级了我的Ruby版本,或者至少我认为我做了......
myuser@myproject:~/myproject$ ruby -v
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
然而,当我尝试运行“捆绑安装”时,我遇到了一些疯狂的错误,我都不理解......
myuser@myproject:~/myproject$ bundle install
/usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find bundler (>= 0) amongst [bundler-unload-1.0.2, executable-hooks-1.3.2, gem- wrappers-1.2.7, minitest-5.4.3, power_assert-0.2.2, rubygems-bundler-1.4.4, rvm-1.11.3.9, test-unit-3.0.8] (Gem::LoadError)
from /usr/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /usr/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'
from /usr/local/bin/bundle:22:in `<main>'
当我尝试运行简单的“捆绑更新”时,同上...
myuser@myproject:~/myproject$ bundle update
/usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find bundler (>= 0) amongst [bundler-unload-1.0.2, executable-hooks-1.3.2, gem- wrappers-1.2.7, minitest-5.4.3, power_assert-0.2.2, rubygems-bundler-1.4.4, rvm-1.11.3.9, test-unit-3.0.8] (Gem::LoadError)
from /usr/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /usr/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'
from /usr/local/bin/bundle:22:in `<main>'
我需要做些什么才能让“捆绑安装”和“捆绑更新”正常工作?