title: How to configure rbenv with ruby?
body: <p>I've tried to install ruby on my mac. Ruby is already installed :</p>
  <pre><code>brew install ruby
  Running `brew update --preinstall`...
  ==&gt; Auto-updated Homebrew!
  Updated 2 taps (homebrew/core and homebrew/cask).
  ==&gt; New Formulae
  ghcup                                     reshape                                   tidy-viewer                               vermin
  ==&gt; Updated Formulae
  Updated 159 formulae.
  ==&gt; New Casks
  kindavim                                                 music-bar                                                presentation
  ==&gt; Updated Casks
  Updated 143 casks.
  ==&gt; Deleted Casks
  airqmon
  
  Warning: ruby 3.0.3 is already installed and up-to-date.
  To reinstall 3.0.3, run:
    brew reinstall ruby
  </code></pre>
  <p>But when i run ruby -version, i get the following result :</p>
  <pre><code>   /Users/oscar/.rbenv/shims/ruby: line 21: /usr/local/Cellar/rbenv/0.4.0/libexec/rbenv: No such file or directory
  </code></pre>
  <p>I am using rbenv. I've tried to reinstall rbenv but i get the same error.
  I am new in ruby and i need some help please.
  How to solve this error ?
  Thanks</p>