hei
2009-Apr-14 09:26 UTC
Can I get multiple applications with different rails versions running on one machine?(can''t activate activerecord)
I did so, details below: original: gem 1.2.0 rails 2.0.2 one application(call it OLD) running well now: gem 1.3.1(for rails 2.3.2''s needs) rails 2.0.2, 2.3.2(both exists) another application(just a test application, almost blank, call it NEW) meet errors: /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:149:in `activate'': can''t activate activerecord (= 2.0.2, runtime), already activated activerecord-2.3.2 (Gem::Exception) Notice: I can''t run gem cleanup, and I don''t want change any of OLD (including rake rails:freeze:edge RELEASE=2.0.2) so I just freeze New, but still get errors. Can anyone help me ? Thanks a lot! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Brendon
2009-Apr-14 14:40 UTC
Re: Can I get multiple applications with different rails versions running on one machine?(can''t activate activerecord)
Have you tried to freeze rails into the project? On Apr 14, 2:26 am, hei <cy...-KN7UnAbNpbg@public.gmane.org> wrote:> I did so, details below: > original: > gem 1.2.0 > rails 2.0.2 > one application(call it OLD) running well > now: > gem 1.3.1(for rails 2.3.2''s needs) > rails 2.0.2, 2.3.2(both exists) > another application(just a test application, almost blank, call it > NEW) meet errors: > > /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:149:in `activate'': > can''t activate activerecord (= 2.0.2, runtime), > already activated activerecord-2.3.2 (Gem::Exception) > > Notice: I can''t run gem cleanup, and I don''t want change any of OLD > (including rake rails:freeze:edge RELEASE=2.0.2) > so I just freeze New, but still get errors. > Can anyone help me ? Thanks a lot!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Marnen Laibow-Koser
2009-Apr-14 17:03 UTC
Re: Can I get multiple applications with different rails versions running on one machine?(can''t act
hei wrote: [...]> Notice: I can''t run gem cleanup, and I don''t want change any of OLD > (including rake rails:freeze:edge RELEASE=2.0.2) > so I just freeze New, but still get errors. > Can anyone help me ? Thanks a lot!Does the environment.rb file on OLD contain the correct RAILS_GEM_VERSION? Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
hei
2009-Apr-15 02:24 UTC
Re: Can I get multiple applications with different rails versions running on one machine?(can''t act
OLD just run well. I think it''s because the oci adapter, I install it with activerecord 2.0.2. I will try to install a new one with activerecord 2.3.2, hope both of them can coexist. Thanks~ On Apr 15, 1:03 am, Marnen Laibow-Koser <rails-mailing-l...@andreas- s.net> wrote:> hei wrote: > > [...] > > > Notice: I can''t run gem cleanup, and I don''t want change any of OLD > > (including rake rails:freeze:edge RELEASE=2.0.2) > > so I just freeze New, but still get errors. > > Can anyone help me ? Thanks a lot! > > Does the environment.rb file on OLD contain the correct > RAILS_GEM_VERSION? > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
hei
2009-Apr-15 03:04 UTC
Re: Can I get multiple applications with different rails versions running on one machine?(can''t act
Got it! <1> cp /PATH/TO/ACTIVERECORD2.0.2/..../oci_adapter.rb /PATH/TO/ ACTIVERECORD2.3.2/...../oci_apapter.rb <2>cp /PATH/TO/ACTIVERECORD2.0.2/..../oci_adapter.rb /PATH/TO/VENDER/ ACTIVERECORD2.3.2/...../oci_apapter.rb And all works well~~~ On Apr 15, 10:24 am, hei <cy...-KN7UnAbNpbg@public.gmane.org> wrote:> OLD just run well. > I think it''s because the oci adapter, I install it with activerecord > 2.0.2. > I will try to install a new one with activerecord 2.3.2, hope both of > them can coexist. > Thanks~ > > On Apr 15, 1:03 am, Marnen Laibow-Koser <rails-mailing-l...@andreas- > > s.net> wrote: > > hei wrote: > > > [...] > > > > Notice: I can''t run gem cleanup, and I don''t want change any of OLD > > > (including rake rails:freeze:edge RELEASE=2.0.2) > > > so I just freeze New, but still get errors. > > > Can anyone help me ? Thanks a lot! > > > Does the environment.rb file on OLD contain the correct > > RAILS_GEM_VERSION? > > > Best, > > -- > > Marnen Laibow-Koserhttp://www.marnen.org > > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > -- > > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---