也遇到了类似的问题,使用过大家的方法,但仍然提示 rake aborted。求大神帮助
localhost:octopress Siri$ rake install
rake aborted!
Gem::LoadError: You have already activated rake 11.2.2, but your Gemfile requires rake 10.5.0. Prepending bundle exec
to your command may solve this.
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:35:in block in setup'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:20:in
map'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:20:in setup'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler.rb:95:in
setup'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/setup.rb:9:in <top (required)>'
/Users/Siri/octopress/Rakefile:2:in
'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/exe/rake:27:in <top (required)>'
LoadError: cannot load such file -- bundler/setup
/Users/Siri/octopress/Rakefile:2:in
'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/exe/rake:27:in `'
(See full trace by running task with --trace)
我的 rake 版本也出现了版本问题,代码如下:
localhost:octopress Siri$ rake install
rake aborted!
Gem::LoadError: You have already activated rake 11.2.2, but your Gemfile requires rake 10.5.0. Prepending bundle exec
to your command may solve this.
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:35:in block in setup'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:20:in
map'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:20:in setup'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler.rb:95:in
setup'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/setup.rb:9:in <top (required)>'
/Users/Siri/octopress/Rakefile:2:in
'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/exe/rake:27:in <top (required)>'
LoadError: cannot load such file -- bundler/setup
/Users/Siri/octopress/Rakefile:2:in
'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/exe/rake:27:in `'
(See full trace by running task with --trace)
求大神帮助
我也遇到了这样的情况,也使用了大家提供的方法,但仍然提示 rake aborted,求助大家帮忙
提示代码如下:
localhost:octopress Siri$ rake install
rake aborted!
Gem::LoadError: You have already activated rake 11.2.2, but your Gemfile requires rake 10.5.0. Prepending bundle exec
to your command may solve this.
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:35:in block in setup'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:20:in
map'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:20:in setup'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler.rb:95:in
setup'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/setup.rb:9:in <top (required)>'
/Users/Siri/octopress/Rakefile:2:in
'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/exe/rake:27:in <top (required)>'
LoadError: cannot load such file -- bundler/setup
/Users/Siri/octopress/Rakefile:2:in
'
/Users/Siri/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/exe/rake:27:in `'
(See full trace by running task with --trace)