无法找到' bundler'

时间:2016-12-19 15:19:22

标签: ruby-on-rails ruby rubygems bundler

我安装了ruby和bundler但是当我运行bundle命令时出现错误:

[jenkins@localhost secure_gate]$ bundle
/usr/share/rubygems/rubygems/dependency.rb:296:in `to_specs': Could not find 'bundler' (>= 0) among 8 total gem(s) (Gem::LoadError)
    from /usr/share/rubygems/rubygems/dependency.rb:307:in `to_spec'
    from /usr/share/rubygems/rubygems/core_ext/kernel_gem.rb:47:in `gem'
    from /usr/local/bin/bundle:22:in `<main>'
[jenkins@localhost secure_gate]$

有没有办法保存这个问题?

1 个答案:

答案 0 :(得分:4)

安装捆绑包是个好主意:

gem install bundler