Skip to content

Resetting RVM gemsets

Hongli Lai edited this page Oct 21, 2013 · 10 revisions

!! NOTE: This page only applies to RVM users. If you are using RVM, then please ignore this page.

When running your app under Phusion Passenger, are you getting an error that looks like this?

Could not find i18n-0.4.5 in any of the sources (Bundler::GemNotFound)

There are multiple reasons why this could happen, and one of them is that your RVM gemsets are corrupt. In that case you will need to reset them, by deleting and reinstalling gems.

First, find out the names of all your gemsets:

$ rvm gemset list
gemsets for ruby-1.9.3-p448 (found in /Users/phusion/.rvm/gems/ruby-1.9.3-p448)
=> (default)
   global
   rails4

In this example we have 3 gemsets. Let's empty (default) first:

$ rvm gemset empty
Are you SURE you wish to remove the installed gems for gemset 'ruby-1.9.3-p448'
(/Users/phusion/.rvm/gems/ruby-1.9.3-p448)?
(anything other than 'yes' will cancel) > yes

Then empty all the others (answer 'yes' when prompted):

$ rvm gemset empty global
...
$ rvm gemset empty rails4
...

Now go to your app, and reinstall your gem bundles:

$ cd /path-to-your-app
$ bundle install

If you installed Phusion Passenger using RubyGems, then you need to reinstall that as well:

When you're done, try starting your application again. It should now work. If it doesn't, please use one of our support resources.