我安装了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]$
有没有办法保存这个问题?
答案 0 :(得分:4)
安装捆绑包是个好主意:
gem install bundler