ufk
ufk

Reputation: 32124

telling homebrew to use is own installed version of [email protected]

I have High Sierra Beta 6 Installed on my Mac Pro.

High sierra beta comes with Ruby 2.2 and brew doctor complains about it since it was tested only with ruby 2.0.

I can install ruby 2.0 with homebrew, is there a way to tell homebrew to actually use that version instead of the ruby version that comes with the OS ?

Upvotes: 3

Views: 833

Answers (3)

jhnferraris
jhnferraris

Reputation: 1401

Just updated to High Sierra. I experienced the same Ruby warnings after upgrade. What I did was:

1. brew doctor -- warnings shown
2. brew update
3. brew doctor -- no more warnings

Upvotes: 0

user143887
user143887

Reputation:

Yes. You can change the ruby version used by homebrew. Just add these 2 lines to your .bash_profile

export HOMEBREW_DEVELOPER="yes"
export HOMEBREW_RUBY_PATH="/Users/USERNAME/.rbenv/shims/ruby"

Upvotes: 0

bfontaine
bfontaine

Reputation: 19851

There’s no way to do that. High Sierra is still in beta so it’s normal it’s not fully supported by Homebrew.

Upvotes: 1

Related Questions