Ruby version not in ruby-build list for rbenv

后端 未结 5 1648
南方客
南方客 2021-01-15 15:56

I\'m using Rails 4.2 and wanted to update my Ruby version as well with rbenv.

I used Homebrew to install ruby-build and no matter how many times I try to update via

5条回答
  •  独厮守ぢ
    2021-01-15 16:28

    The recommended installation from (https://github.com/sstephenson/ruby-build) states that you should install ruby-build as an rbenv plug-in.

    • I uninstalled ruby-build via Homebrew (brew uninstall ruby-build)
    • Navigated to ruby-build on my local machine and deleted it
    • git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

    Now, when I run rbenv install --list, I see Ruby 2.1.3. A quick installation of: rbenv install 2.1.3 and I am now free to use 2.1.3 where I like. This also worked for my teammate.

提交回复
热议问题