Phusion Passenger Error: You have activated rack 1.2.1, but your Gemfile requires rack 1.2.2
try to restart your server after edit in your Gemfile and put this: gem 'rack', '1.2.1'
You have already activated rack 1.6.1, but your Gemfile requires rack 1.5.5.
I turns out that I was using Rails 4.1.2 which used Rack 1.5.5. When I updated my Rails app to use Rails 4.2.6 the later version of rack was loaded and this conflict in the gems was solved.
You have already activated rack 1.6.0, but your Gemfile requires rack 1.6.4
you need to uninstall one version of rack which is not required.
Do this please
gem uninstall rack -v 1.6.0
Reference: How to force rack to work around the usual "You have already activated rack..." bug?
You have already activated X, but your Gemfile requires Y
Using bundle exec
is the right way to do this.
Basically what's happening is that you've updated rake to 0.9.2 which now conflicts with the version specified in your Gemfile. Previously the latest version of rake
you had matched the version in your Gemfile, so you didn't get any warning when simply using rake
.
Yehuda Katz (one of the original Bundler developers) explains it all in this blog post.
To avoid typing bundle exec ...
all the time, you could set up an alias or function in your shell for commands you commonly use with Bundler. For example this is what I use for Rake:
$ type bake
bake is a function
bake ()
{
bundle exec rake "$@"
}
Related Topics
Mongodb with Mongoid in Rails - Geospatial Indexing
Ruby Working on Array Elements in Groups of Four
Find Out If an Ip Is Within a Range of Ips
Ruby: Most Concise Way to Use an Env Variable If It Exists, Otherwise Use Default Value
Is Require File.Expand_Path(..., _File_) the Best Practice
Disable a Group of Tests in Rspec
Rails Mapping Array of Hashes Onto Single Hash
Finding What Is Common to Two Arrays
How to Get the Number of Days in a Given Month in Ruby, Accounting for Year
If Java People Go to Scala, C# Go to F#, Where Do Ruby People Go for Functional Nirvana
Generating Unique, Hard-To-Guess "Coupon" Codes
How to Remove Carriage Returns with Ruby
When Do We Use the "||=" Operator in Rails? What Is Its Significance
Check Whether a String Contains One of Multiple Substrings
Imagemagick 7 with Rmagick 2.16 on MACos Sierra Can't Find Magickwand.H
Generate Unique Random String with Letters and Numbers in Lower Case