Wednesday, May 25, 2011

Bundler installing gems in a wrong/different directory

So I managed to liven up my experience playing with rails and all it's friggin magics. So I was doing this bundle install stuff and I noticed it was installing in a different directory.

[18:30:04] blah$ bundle
[install]
[install]
[install]
[non stop installing]
[.. aaand]
Your bundle is complete! It was installed into ./postgres


What the!? postgres. I tried digging for configs or stuff on the project but most postgres words wasn't about bundle and postgres. I don't know what I did though to get this situation but I managed to dig something with duckduckgo and found this site (though it's down) and we had a similar problem, though mine was not spork - it was postgres.

Thinking about it, I might have also done something like bundle install postgres.

So I'll also state it here that the way to fix this is

bundle install --system
And then

[18:30:04] blah$ bundle
[non stop installation again.. aand]
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.


Nice!

1 comment:

  1. Ruby on Rails Dev Needed...
    I need a Ruby on Rails Developer to further develop and maintain a Social Network.
    Great Compensation with incentives. For further details call
    09186503713. Let's talk.

    ReplyDelete