Domanda

I am a newbie when it comes to working with gems so pardon me if i'm getting my facts wrong.

I want to update Bundler from v1.3.5 to the latest version (v1.5.3) so I tried doing:

sudo gem install bundler --pre

the command line outputs:

Fetching: bundler-1.5.3.gem (100%)Fetching: bundler-1.5.3.gem
Successfully installed bundler-1.5.3
Parsing documentation for bundler-1.5.3
Installing ri documentation for bundler-1.5.3
Done installing documentation for bundler after 4 seconds
1 gem installed

but when I do gem list or bundle --version, it shows that i'm still using the old version (v1.3.5). This goes to all my other gems. I tried updating Susy, Sass and Compass the same way, but it doesn't get updated even though it says that it was installed successfully.

Any ideas? TIA

È stato utile?

Soluzione

Fixed it. It seems that if you add sudo when installing gems, it installs the gem on a different directory from the one used when you don't use sudo. I saw this when I did sudo gem list and it displayed different results from a normal gem list command.

To be able to add gems without sudo I just did chown -R [current_user] [ruby_directory]

Altri suggerimenti

Run bundle update on the command line. This will update your gems in your app.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top