我在尝试rbenv: version 2.0.0-p195' is not installed
时收到bundle
,即使我已正确安装并切换到它,如下所示:
➜ rbenv versions
system
* 2.0.0-p195 (set by /Users/me/.ruby-version)
➜ rbenv local 2.0.0-p195
➜ ruby -v
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin13.3.0]
➜ bundle
rbenv: version `2.0.0-p195' is not installed
rbenv: version `2.0.0-p195' is not installed
➜ rbenv rehash
➜ ruby -v
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin13.3.0]
➜ bundle
rbenv: version `2.0.0-p195' is not installed
rbenv: version `2.0.0-p195' is not installed
我有我正在尝试使用的ruby版本:
➜ ls ~/.rbenv/versions
2.0.0-p195 2.0.0-p481
有没有人对rbenv有这个问题?任何建议将不胜感激。
谢谢,
答案 0 :(得分:1)
添加到您的~/.bash_profile
或~/.bashrc
:
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
按source ~/.bash_profile
加载rc,然后重试。