Did you execute all the step in the installation instructions https://github.com/sstephenson/rbenv? I.e. did you add the required snippets to your shell startup (
.bash_profile) and so forth?If you followed the instructions, could you provide the output of
rbenv versionsandwhich -a rubyfor a start?
EDIT:
rbenv rehashseems to be what generates the shims. This must be executed every time you install a new ruby version. How did you install the rubies? Withruby-build, as recommended in the installation instructions?
Did you execute all the step in the installation instructions https://github.com/sstephenson/rbenv? I.e. did you add the required snippets to your shell startup (
.bash_profile) and so forth?If you followed the instructions, could you provide the output of
rbenv versionsandwhich -a rubyfor a start?
EDIT:
rbenv rehashseems to be what generates the shims. This must be executed every time you install a new ruby version. How did you install the rubies? Withruby-build, as recommended in the installation instructions?
When I encountered this error, all I had to do was to make sure that $PATH had shims prior to system version of ruby like so:
~/.rbenv/shims:/usr/local/bin:/usr/bin:/bin