-
Notifications
You must be signed in to change notification settings - Fork 549
Resetting RVM gemsets
!! NOTE: This page only applies to RVM users. If you are not 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 use ruby-1.9.3-p448@global
$ rvm gemset empty
...
$ rvm use ruby-1.9.3-p448@rails4
$ rvm gemset empty
...
OR (seems to be dependent on the version of rvm you are using)
$ 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 get an error like 'bundle - command not found' you have to install it first
$ gem install bundler
If you installed Phusion Passenger using RubyGems, then you need to reinstall Phusion Passenger as well:
- Apache installation instructions
- Nginx mode installation instructions
- Standalone mode installation instructions
When you're done, try starting your application again. It should now work. If it doesn't, please use one of our support resources.