-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Home
rbenv is a tool for simple Ruby version management.
To install rbenv, please refer to the Readme.
See Why rbenv?
-
Check that
rbenv
is in your PATH:command which rbenv
-
Check that rbenv's shims directory is in PATH:
echo $PATH | grep --color=auto "$(rbenv root)/shims"
If not, see the
rbenv init
step in installation instructions.
Typically it's one of the following:
- bash:
~/.bash_profile
- zsh:
~/.zshenv
- other:
~/.profile
If your .bash_profile
isn't taking effect, create this .bashrc
file:
# invoked for non-login, interactive shells
[ -n "$PS1" ] && source ~/.bash_profile
If you already have a .profile
file, it might be best to not create
.bash_profile
or .bashrc
, but put rbenv configuration in .profile
.
For zsh, you may experience better results with .zshrc
instead of .zshenv
.
See Unix shell initialization for more info about how config files get loaded.
Rubinius in 1.9 mode uses a separate bin directory for executable binstubs. To compensate for that, use the rbx 2.0 dev fix plugin.