Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bundle install mess

I have using RVM on a mac for a rails 3 development.

I wanted to run bundle update newrelic_rpm to upgrade to the new version of the gem.

This was a bad idea: it creates a new folder call newrelic_rpm at the root of my app, and bundle (v 1.0.10) displays proudly

Your bundle is complete! It was installed into ./newrelic_rpm

And now i'm stuck, i cannot update my bundle and it keeps putting all my gems in the newly created folder.

can anyone please help me revert to the initial setup (and get rid of this ./newrelic_rpm folder)?

thanks! p.

like image 602
Pierre Avatar asked May 20 '11 12:05

Pierre


2 Answers

I'm assuming that you first tried something like bundle install newrelic_rpm, which created the newrelic_rpm folder and told Bundler to start using that folder as the default.

Your .bundle/config file likely contains something like this:

---
BUNDLE_PATH: newreli_rpm
BUNDLE_DISABLE_SHARED_GEMS: "1"

The easiest way to fix this (assuming your Bundler is up to date), is to run this command to install everything back in the main shared system paths:

bundle install --system

Then, bundle update newrelic_rpm should do what you intended (updating the newrelic_rpm gem, rather than updating everything and putting it in newrelic_rpm).

like image 55
Dylan Markow Avatar answered Sep 30 '22 01:09

Dylan Markow


First: make backup. Then try removing '.bundle' directory. Or just see the '.bundle/config' file - I guess there will be something interesting.

like image 33
Arsen7 Avatar answered Sep 29 '22 23:09

Arsen7