I am using OS X 10.10.5 (Yosemite). I am trying to clone a github repo for MacDown. The instructions in README say that after cloning you should do
git submodule init git submodule update bundle install bundle exec pod install
I am not a ruby programmer, so I had to install the Bundler. The first two steps went fine, but when I tried to run bundle install , I got an error
activesupport-5.0.0.1 requires ruby version >= 2.2.2, which is incompatible with the current version, ruby 2.0.0p481
So I tried brew install ruby , and now I have
saul@miniMac ✓ ruby --version ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin14]
However, bundle install gives me the same error message as before. Clearly, he finds a ruby at /usr/bin/ruby instead of one at /usr/local/bin/ruby . How to fix it?
I thought that maybe the problem was that I installed the bundle before updating ruby, but sudo gem uninstall bundler and sudo gem uninstall bundle have no effect, and I don't know what else to try.
Here is the whole conclusion, if it matters:
saul@miniMac ✓ bundle install Fetching gem metadata from https://rubygems.org/.......... Fetching version metadata from https://rubygems.org/.. Fetching dependency metadata from https://rubygems.org/. Resolving dependencies... activesupport-5.0.0.1 requires ruby version >= 2.2.2, which is incompatible with the current version, ruby 2.0.0p481
EDIT:
Thanks for the suggestions. I tried the gem install bundler again, but that didn't help. I have the same error message. Here is what I get from bundle env
saul@miniMac ✗ bundle env Environment Bundler 1.13.6 Rubygems 2.0.14 Ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14] Git 2.5.4 (Apple Git-61) Gemfile source 'https://rubygems.org' gem 'cocoapods', '0.39.0' Gemfile.lock <No /Users/saul/Projects/macdown/Gemfile.lock found>
EDIT 2:
saul@miniMac ✓ which -a bundle /usr/local/bin/bundle /usr/bin/bundle