John Merlino
2013-May-18 17:19 UTC
You have already activated rake 10.0.4, but your Gemfile requires rake 10.0.3.
I''m careful to create separate gemsets for each project, so when I run bundle install, it only installs gems for that gemset. This way gems dont creep into the wrong projects. Now I just pulled a project from github. I made sure I was in the correct gemset, and then I run bundle install and it works fine. but then when I use rake to create the database "rake db:create". I get this error: You have already activated rake 10.0.4, but your Gemfile requires rake 10.0.3. What does it mean "you already activated rake 10.0.4"? All that should be installed for this gemset is whatever is in Gemfile. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Walter Lee Davis
2013-May-18 17:29 UTC
Re: You have already activated rake 10.0.4, but your Gemfile requires rake 10.0.3.
On May 18, 2013, at 1:19 PM, John Merlino wrote:> I''m careful to create separate gemsets for each project, so when I run > bundle install, it only installs gems for that gemset. This way gems > dont creep into the wrong projects. Now I just pulled a project from > github. I made sure I was in the correct gemset, and then I run bundle > install and it works fine. but then when I use rake to create the > database "rake db:create". I get this error: > > You have already activated rake 10.0.4, but your Gemfile requires rake > 10.0.3. > > What does it mean "you already activated rake 10.0.4"? All that should > be installed for this gemset is whatever is in Gemfile.Did you declare rake in your Gemfile? Also, did you try bundle exec rake db:create? I think maybe rake is loaded before your gemset has a chance to assert itself. Walter -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/325181DC-ECFE-414C-9BD1-75BF78D50F47%40wdstudio.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
Emil S
2013-May-18 17:57 UTC
Re: You have already activated rake 10.0.4, but your Gemfile requires rake 10.0.3.
I guess you have installed rake in your `global` gemset for the ruby version you are using. Go outside the project and run `rvm use <ruby version>@global` and then `gem list`. If you see rake in the list, that means you have it in the global gemset. No matter which gemset you use with the ruby version, the gems in the global gemset will be available. On 18 May 2013 22:59, Walter Lee Davis <waltd-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote:> > On May 18, 2013, at 1:19 PM, John Merlino wrote: > > > I''m careful to create separate gemsets for each project, so when I run > > bundle install, it only installs gems for that gemset. This way gems > > dont creep into the wrong projects. Now I just pulled a project from > > github. I made sure I was in the correct gemset, and then I run bundle > > install and it works fine. but then when I use rake to create the > > database "rake db:create". I get this error: > > > > You have already activated rake 10.0.4, but your Gemfile requires rake > > 10.0.3. > > > > What does it mean "you already activated rake 10.0.4"? All that should > > be installed for this gemset is whatever is in Gemfile. > > Did you declare rake in your Gemfile? Also, did you try bundle exec rake > db:create? > > I think maybe rake is loaded before your gemset has a chance to assert > itself. > > Walter > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/325181DC-ECFE-414C-9BD1-75BF78D50F47%40wdstudio.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJ%3Dox-AuO6jUxQBKuLa-syhKTeJ7%3DBMoPE59uSfODgCKcxKd0A%40mail.gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
Dheeraj Kumar
2013-May-19 02:12 UTC
Re: You have already activated rake 10.0.4, but your Gemfile requires rake 10.0.3.
Bundler is present in the global gemset. What I usually do is rvm gemset use @global and then do a gem uninstall bundler On May 18, 2013 10:51 PM, "John Merlino" <stoicism1-YDxpq3io04c@public.gmane.org> wrote:> I''m careful to create separate gemsets for each project, so when I run > bundle install, it only installs gems for that gemset. This way gems > dont creep into the wrong projects. Now I just pulled a project from > github. I made sure I was in the correct gemset, and then I run bundle > install and it works fine. but then when I use rake to create the > database "rake db:create". I get this error: > > You have already activated rake 10.0.4, but your Gemfile requires rake > 10.0.3. > > What does it mean "you already activated rake 10.0.4"? All that should > be installed for this gemset is whatever is in Gemfile. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.