-bash: ruby: command not found -bash: ruby: command not found ruby-on-rails ruby-on-rails

-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:


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"