克隆回购后无法捆绑安装

时间:2017-07-25 18:06:43

标签: ruby-on-rails ruby ubuntu

这是我捆绑时的错误。有什么问题?

bundle install
rbenv: bundle: command not found

The `bundle' command exists in these Ruby versions:
  2.3.1

command -v ruby
/home/brian/.rbenv/shims/ruby

command -v bundle
/home/brian/.rbenv/shims/bundle

ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]

bundle -v
Bundler version 1.15.3

1 个答案:

答案 0 :(得分:1)

尝试:

  1. 设置正确的ruby(rbenv)版本rbenv global 2.3.1

  2. 然后是rbenv rehash,然后是bundle install

  3. 如果这不起作用,我认为你应该重新安装捆绑包

    1. 再次设置正确的ruby版本rbenv global 2.3.1
    2. gem uninstall bundler
    3. gem install bundler
    4. 然后是rbenv rehash,然后是bundle install