Skip to content

rbenv install 3.4.4 apparently successful, but ruby 3.4.4 not found #2541

Answered by mislav
jen2014 asked this question in Build failures
Discussion options

You must be logged in to vote

Hi, I suspect that the rbenv init line in your zshrc still isn't working.

Let's circle bash to your zshrc:

eval "$(rbenv init -)"
eval "$(/opt/homebrew/bin/brew shellenv)"

Let's change that to:

eval "$(/opt/homebrew/bin/brew shellenv)"
eval "$(~/.rbenv/bin/rbenv init - zsh)"

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 as rbenv instead of ~/.rbenv/bin/rbenv, because Homebrew would have ensured that it's in PATH.)

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mislav
Comment options

Answer selected by jen2014
Comment options

You must be logged in to vote
1 reply
@mislav
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants