You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"rbenv: version \`${RBENV_VERSION}' not installed">&2
exit 1
fi
Possible solution
Perhaps something like this could work:
RBENV_PREFIX_PATH="${RBENV_ROOT}/versions/${RBENV_VERSION}"if [ !-d"$RBENV_PREFIX_PATH" ];thenecho"rbenv: version \`${RBENV_VERSION}' not installed">&2echo"rbenv: you can try installing it with 'rbenv install ${RBENV_VERSION}'">&2exit 1
fi
Examples of this problem
This gist contains a lot of comments on this topic (to illustrate that I'm not the only one with this issue).
Seems like it could be helpful; though it's worth considering that rbenv install may not be available. rbenv-install is provided by ruby-build when installed as an rbenv plugin. But ruby-build is optional and not required for rbenv to work. Which means the rbenv install command isn't guaranteed to exist.
Seems like it could be helpful; though it's worth considering that rbenv install may not be available. rbenv-install is provided by ruby-build when installed as an rbenv plugin. But ruby-build is optional and not required for rbenv to work. Which means the rbenv install command isn't guaranteed to exist.
Good point! Should gate on that script being installed. Since it would be an additive message, it's not a problem if that wouldn't be shown to everyone.
It would be great if the "version x.y.z is not installed" message could be extended, explaining how to install the required version.
AFAIK running
rbenv install
should solve the problem.I think this is the relevant source:
rbenv/libexec/rbenv-prefix
Lines 36 to 40 in d604acb
Possible solution
Perhaps something like this could work:
Examples of this problem
This gist contains a lot of comments on this topic (to illustrate that I'm not the only one with this issue).
https://gist.github.com/esteedqueen/b605cdf78b0060299322033b6a60afc3
The text was updated successfully, but these errors were encountered: