I'm trying to install homebrew on my Mac OSX Yosemite machine. When I try to follow the conventional installation process:
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
I keep getting the message in my terminal "You didn't really think you could install Ruby through npm, did you?"
To my knowledge, Yosemite comes with Ruby 2.0 installed in the PATH. If this is so, why do I keep getting this message and how do I install Ruby and Homebrew.
I looked up a number of examples online but every example for installing Homebrew requires ruby and every example for installing Ruby requires Homebrew.
SMH, why not give me a message of what I need to do instead of a bullshit comedy message?!?
Using /usr/bin/ruby
instead of plain ruby
as already suggested will work.
However, this is only applying a bandaid; you should be stopping the bleeding, because the inane npm ruby will still be in your path and may come back to bite you in the rear-end.
A more sane approach would be to un-install the npm ruby. Something like:
npm uninstall -g ruby
Try the same command but starting with /usr/bin/ruby
which is the full absolute path to the ruby that is bundled with OS X. If you type which ruby
my guess is you are running a different program also named "ruby" that is "not the droids you are looking for" if you know what I mean. Another good sanity check is /usr/bin/ruby -v
should print something similar to "ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With