I've recently switched from RVM to RBENV as my Ruby manager under MacOS Sierra.
$ rbenv version
2.3.1 (set by /Users/meltemi/.rbenv/version)
$ which ruby
/Users/meltemi/.rbenv/shims/ruby
I've used Homebrew to install packages like vim
for years and never had Ruby version be installed via Homebrew.
Now when I brew upgrade vim
I get a forced dependency install of Ruby.
==> Upgrading vim
==> Installing dependencies for vim: ruby
==> Installing vim dependency: ruby
==> Downloading https://homebrew.bintray.com/bottles/ruby-2.3.1_2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring ruby-2.3.1_2.sierra.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/rake
Target /usr/local/bin/rake
already exists. You may want to remove it:
rm '/usr/local/bin/rake'
To force the link and overwrite all conflicting files:
brew link --overwrite ruby
To list all files that would be deleted:
brew link --overwrite --dry-run ruby
Possible conflicting files are:
/usr/local/bin/rake
/usr/local/bin/rdoc
/usr/local/bin/ri
==> Caveats
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/ruby
==> Summary
🍺 /usr/local/Cellar/ruby/2.3.1_2: 1,261 files, 18.8M
How can I get Homebrew (read: vim
) to use the rbenv
version of Ruby?