I'm trying to get some Ruby project running and the project is using .ruby-version
file. That file contains only:
1.9.3
I installed the latest Ruby 1.9.3:
$ rbenv install 1.9.3-p448
However when I ran ruby --version
I got
rbenv: version '1.9.3' is not installed
To fix this error I listed ~/.rbenv/versions/
and it contained the folder 1.9.3-p448
. I renamed that folder to 1.9.3
and ran rbenv rehash
. This fixed the problem.
Looks like the -p448
part (What does it mean? Patch?) confuses rbenv. How can I make it recognise the correct 1.9.3 version without manually renaming the folder in ~/.rbenv
? I could also change .ruby-version
to 1.9.3-p448
, but that means that the project will depend on my particular "patch" of Ruby 1.9.3, which is bad.