捆绑包不使用 rbenv 版本
Bundle not using rbenv version
我正在尝试使用 rbenv 进行捆绑。当我检查 ruby 版本时,它给了我 2.4.0,rbenv。但是在调用 bundle 时,它使用的是默认安装的 osx 版本。
MacBook-Pro-256:kittens-or-puppies antarrbyrd$ bundle
Your Ruby version is 2.0.0, but your Gemfile specified 2.4.0
MacBook-Pro-256:kittens-or-puppies antarrbyrd$ ruby -v
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]
运行 rbenv rehash
The rehash command updates the shim for the bundle binary.
确保您已将此添加到您的 .bash_profile
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
也尝试卸载捆绑程序并重新安装,然后 运行 rehash
。
我正在尝试使用 rbenv 进行捆绑。当我检查 ruby 版本时,它给了我 2.4.0,rbenv。但是在调用 bundle 时,它使用的是默认安装的 osx 版本。
MacBook-Pro-256:kittens-or-puppies antarrbyrd$ bundle
Your Ruby version is 2.0.0, but your Gemfile specified 2.4.0
MacBook-Pro-256:kittens-or-puppies antarrbyrd$ ruby -v
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]
运行 rbenv rehash
The rehash command updates the shim for the bundle binary.
确保您已将此添加到您的 .bash_profile
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
也尝试卸载捆绑程序并重新安装,然后 运行 rehash
。