无法安装rbenv超过2.4.0?

时间:2017-10-10 16:10:09

标签: homebrew rbenv

所以我在OSX上使用Homebrew安装rbenv,我似乎无法安装过去2.4.0。我试图安装2.4.1,但它抱怨它不在rbenv install --list

我已经尝试了brew update && brew upgrade ruby-build。我已经卸载了ruby / rbenv / ruby​​-build并重新安装它们。我已经运行了brew doctor以及所有这些:

在运行rbenv github上建议的curl命令时,我确实得到了这个。

$ 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')

我不是很精通理解这意味着什么?我想在过去我可能没有酿造rbenv。所以我不完全确定这是不是问题。但我知道我应该能够安装rbenv超过2.4.0。

1 个答案:

答案 0 :(得分:1)

看来你已经用bash安装了rbenv。当您使用此版本时 - 您应该通过在.rbenv更新其git仓库来更新ruby-build。

首先尝试从您的计算机上卸载所有类型的rbenv:

  1. brew uninstall rbenv

  2. grep你的FS从bash安装的rbenv中找到任何工件,并删除它们

  3. 之后尝试使用brew进行清洁安装。

相关问题