This is kind of bizarre. Any time I do a bundle install, Bundler installs all my gems to the path #{RAILS_ROOT}/json_pure/ruby/1.8/gems. I copied the Gemfile directly from a
Had the same issue after I upgraded Xcode
I had to run:
sudo xcode-select --switch /Library/Developer/CommandLineTools/
then:
sudo bundle install --system
After that everything was fine.
Hmm.. just guessing that somehow when you originally installed bundler to. Try a reinstall with this :
You can specify this setting when installing via
bundle install /path/to/bundle
. Bundler will remember where you installed the dependencies to on a particular machine for future installs, loads, setups, etc.
Also this is Carl Huda's recommendations for troubleshooting :
rm -rf ~/.bundle/ ~/.gem/ .bundle/ Gemfile.lock
bundle install
you've probably got BUNDLE_PATH: set in .bundle/config . Change or remove that line.
If you accidentally type bundle install SOME_GEM
it seems to permanently set your gem directory to SOME_GEM.
Looks like you can get back to normal with bundle install --system
command-line-ui-fail
Figured out from: http://www.theirishpenguin.com/2011/03/05/bundler-installing-gems-into-the-wrong-directory-mea-culpa/