LoadError: cannot load such file -- bundler/audit/cli
LoadError: cannot load such file -- bundler/audit/cli
尝试捆绑 exec rake -T 时出现 bundler/audit/cli 未找到错误。我可以捆绑安装,没有问题。任何想法为什么会这样?我在 ubuntu 14.04 系统上,安装了 rvm。
$ bundle exec rake -T
rake aborted!
LoadError: cannot load such file -- bundler/audit/cli
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
/srv/website/releases/20150309222243/lib/tasks/bundler_audit.rake:2:in `<top (required)>'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `block in load'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:658:in `block in run_tasks_blocks'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:658:in `each'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:658:in `run_tasks_blocks'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/application.rb:438:in `run_tasks_blocks'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:453:in `load_tasks'
/srv/website/releases/20150309222243/Rakefile:6:in `<top (required)>'
(See full trace by running task with --trace)
看起来您的佣金任务需要 bundler-audit
gem,但是 gem 要么不在您的 Gemfile
中,要么不在组中您正在这台机器上安装。
尝试捆绑 exec rake -T 时出现 bundler/audit/cli 未找到错误。我可以捆绑安装,没有问题。任何想法为什么会这样?我在 ubuntu 14.04 系统上,安装了 rvm。
$ bundle exec rake -T
rake aborted!
LoadError: cannot load such file -- bundler/audit/cli
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
/srv/website/releases/20150309222243/lib/tasks/bundler_audit.rake:2:in `<top (required)>'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `block in load'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:658:in `block in run_tasks_blocks'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:658:in `each'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:658:in `run_tasks_blocks'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/application.rb:438:in `run_tasks_blocks'
/home/markgandolfo/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:453:in `load_tasks'
/srv/website/releases/20150309222243/Rakefile:6:in `<top (required)>'
(See full trace by running task with --trace)
看起来您的佣金任务需要 bundler-audit
gem,但是 gem 要么不在您的 Gemfile
中,要么不在组中您正在这台机器上安装。