Skip to content
Mislav Marohnić edited this page Dec 31, 2012 · 29 revisions

rbenv is a tool for simple Ruby version management.

To install rbenv, please refer to the Readme.

Troubleshooting / FAQ

How to verify that I have set up rbenv correctly?

  1. Check that rbenv is in your PATH:

    command which rbenv

  2. 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.

Which shell startup file do I put rbenv config in?

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.