-bash: ruby: command not found
rbenv needs these at the end of your ~/.bash_profile:
export PATH="$HOME/.rbenv/bin:$PATH"eval "$(rbenv init -)"
Use grep rbenv ~/.bash_profile
to see if they're there.
If not, run:
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profileecho 'eval "$(rbenv init -)"' >> ~/.bash_profileexec $SHELL -l
and you should be up and running.
See steps 2 and 3 in the docs for more information.
Additional information on .bashrc, .bash_profile and .profile can be found in:
- What's the difference between .bashrc, .bash_profile, and .environment?
- Difference between .profile and .bash_profile on Snow Leopard
- https://superuser.com/questions/183870/difference-between-bashrc-and-bash-profile
- https://unix.stackexchange.com/questions/40708/what-is-the-difference-between-profile-bashrc-bash-profile-gnomer
Run env | grep PATH
and make sure that you have $HOME/.rbenv/bin
in your PATH.
If it is not, add this to ~/.bash_profile.
export PATH="$HOME/.rbenv/bin:$PATH"