msmith1114
msmith1114

Reputation: 3231

Can't install rbenv past 2.4.0?

So I have rbenv install on OSX with Homebrew, and I can't seem to install past 2.4.0. Im trying to install 2.4.1 but it complains it's not in rbenv install --list.

I've tried brew update && brew upgrade ruby-build which it suggests. I've uninstalled ruby/rbenv/ruby-build and reinstalled them. i've ran brew doctor and all this:

I do get this when running the curl command suggested on the rbenv github.

$ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
Checking for `rbenv' in PATH: /usr/local/bin/rbenv
Checking for rbenv shims in PATH: OK
Checking `rbenv install' support: multiple
  You seem to have multiple `rbenv-install' in the following locations.
  Please pick just one installation and remove the others.

  /usr/local/var/rbenv/plugins/ruby-build/bin/rbenv-install
  /usr/local/bin/rbenv-install

Counting installed Ruby versions: 7 versions
Checking RubyGems settings: OK
Auditing installed plugins: warning
  rbenv-gem-rehash functionality is now included in rbenv core. Please remove the plugin.
    (found in `/usr/local/var/rbenv/plugins/rbenv-gem-rehash/etc/rbenv.d/exec/~gem-rehash.bash')

I’m not super proficient in understanding what this means? I think in the past I installed rbenv without brew possibly. So im not entirely sure if this is the problem. But I know I should be able to install rbenv past 2.4.0.

Upvotes: 0

Views: 523

Answers (1)

Stanislav Mekhonoshin
Stanislav Mekhonoshin

Reputation: 4386

It seems that you have already installed rbenv with bash. When you use this version - you should update ruby-build by updating its git repo at .rbenv.

First of all try to uninstall all kinds of rbenv from your machine:

  1. brew uninstall rbenv

  2. grep your FS to find any artifacts from bash-installed rbenv, and remove them

After that try clean installation with brew.

Upvotes: 2

Related Questions