【发布时间】:2018-03-22 03:04:09
【问题描述】:
所以我在 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')
我不是很擅长理解这意味着什么?我认为过去我可能在没有 brew 的情况下安装了 rbenv。所以我不完全确定这是否是问题所在。但我知道我应该能够安装 rbenv 超过 2.4.0。
【问题讨论】: