无法安装 rbenv 超过 2.4.0?
Can't install rbenv past 2.4.0?
所以我用 Homebrew 在 OSX 上安装了 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
命令时,我确实得到了这个 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')
我不是很了解这是什么意思?我想过去我可能没有安装 brew 就安装了 rbenv。所以我不完全确定这是否是问题所在。但我知道我应该能够在 2.4.0 之后安装 rbenv。
看来您已经用 bash 安装了 rbenv。当你使用这个版本时 - 你应该更新 ruby-build 通过在 .rbenv
.
更新它的 git 仓库
首先尝试从您的机器上卸载各种 rbenv:
brew uninstall rbenv
grep 你的 FS 以从 bash-installed rbenv 中找到任何工件,并删除它们
之后尝试使用 brew 进行全新安装。
所以我用 Homebrew 在 OSX 上安装了 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
命令时,我确实得到了这个 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')
我不是很了解这是什么意思?我想过去我可能没有安装 brew 就安装了 rbenv。所以我不完全确定这是否是问题所在。但我知道我应该能够在 2.4.0 之后安装 rbenv。
看来您已经用 bash 安装了 rbenv。当你使用这个版本时 - 你应该更新 ruby-build 通过在 .rbenv
.
首先尝试从您的机器上卸载各种 rbenv:
brew uninstall rbenv
grep 你的 FS 以从 bash-installed rbenv 中找到任何工件,并删除它们
之后尝试使用 brew 进行全新安装。