rbenv install 3.4.4 apparently successful, but ruby 3.4.4 not found #2541
-
I can't find any way out of this:
Verifying rbenv versions:
Looking for the installed ruby:
(So, only the Apple version is showing up, not 3.4.4 supposedly installed by
I am sure something is wrong somewhere, but other than restarting everything from scratch with an exhaustive guide, I don't know where to start. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi, it looks like both rbenv and Ruby 3.4.4 are all installed correctly, but "system" ruby 2.6 takes precedence somehow. This could be to the ordering of locations in PATH. You can do
The |
Beta Was this translation helpful? Give feedback.
-
Hi mislav, thanks for the help.
And
Is there a way to correct that situation? |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot, that worked! I had actually tried |
Beta Was this translation helpful? Give feedback.
Hi, I suspect that the
rbenv init
line in your zshrc still isn't working.Let's circle bash to your zshrc:
Let's change that to:
And then restart your shell/terminal window for the changes to take effect. Take note of any potential error messages during shell startup. Here I am assuming you've installed rbenv via git checkout into
~/.rbenv
. In case you've installed by Homebrew, you would just reference rbenv asrbenv
instead of~/.rbenv/bin/rbenv
, because Homebrew would have ensured that it's in PATH.)