`report_activate_error':找不到RubyGem bundler(> = 0)(Gem :: LoadError)

时间:2014-09-19 07:49:23

标签: ruby-on-rails ruby whenever

我正在尝试使用crontab执行rake任务并收到以下错误:

/usr/lib/ruby/site_ruby/1.8/rubygems.rb:779:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError)
    from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:214:in `activate'
    from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:1082:in `gem'
    from /usr/bin/bundle:22

任何人都可以帮我吗?

我有红宝石& Bundler安装在usr / local / bin 错误显示为usr / bin

1 个答案:

答案 0 :(得分:2)

请安装'bundler'宝石。做

gem install bundler

然后运行

bundle install

要运行rake命令,请使用 bundle exec

bundle exec rake command