LoadError:无法加载此类文件--bundler / audit / cli

时间:2015-03-09 22:34:42

标签: ruby bundler

当尝试捆绑exec rake -T时,我得到一个bundler / audit / cli not found错误。我可以捆绑安装,没有问题。任何想法为什么会这样?我在安装了rvm的ubuntu 14.04系统上。

$ 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)

1 个答案:

答案 0 :(得分:3)

看起来您有一个需要bundler-audit gem的rake任务,但是Gemfile中缺少该gem,或者您在此计算机上安装的组中没有。