我使用2.1.4
使用了rvm
版本,但每当我尝试在应用程序上运行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, rubygems-bundler-1.4.4, rvm-1.11.3.9] (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>'
第一个问题是我将ruby版本切换为2.1.4
,那么他们为什么要错误地提供版本1.9.1
?
第二个问题是,在应用程序Gemfile中有依赖gem
gem 'quality-measure-engine', :git => 'https://github.com/pophealth/quality-measure-engine.git', :branch => 'master'
由于依赖gem,会发生此错误吗?