Ruby version not in ruby-build list for rbenv -
I am using Rail 4.2 and want to update my ruby version with RBNV.
I used Homebrew to install ruby fabric and no matter how many times I try to update via decoction
, not Ruby version 2.1.3 Will be shown when I run Rbenv install - list
after you install Create ruby with rbenv and homebrew and when you do this $ echo (rbenv user name & gt; root)
, you / usr / local / Var / rbenv
/ user / And instead of lt / rbenv
, here's how to fix. Issue
When you install rbenv with homebrew, homebrew says:
not to use directories of homebrew but to add your profile from ~ / .rbenv : Export RBENV_ROOT = / Usr / local / var / rbenv
Do not do this Remove the line from your profile Make sure that you refresh your terminal after
Then remove any symptoms of rbenv in the / usr / local / var directory.
sudo rm -r / usr / local / var / rbenv
Now when I do ebb $ (rbenv root)
I / users / & lt; Username & gt; / Rbenv
/ usr / local / var / rbenv
instead
it has been set for me.
Comments
Post a Comment