Hi all, I''m a newbies for ruby and need some help for installation blocker. I have my ruby installed "ruby 1.9.2dev (2010-07-11 revision 28613) [i686-linux]" And then I install the rails sudo gem install rails --pre but when I do rails -v, it shows Rails 2.3.8 [ Note: I''ve installed 2.3.8 few days ago. And today I tried to install the latest version. ] So how I can use the latest version instead of the version I installed few days ago?? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Jul 12, 4:45 pm, Roy Yu <iroy2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > I''m a newbies for ruby and need some help for installation blocker. > > I have my ruby installed "ruby 1.9.2dev (2010-07-11 revision 28613) > [i686-linux]" > > And then I install the rails > sudo gem install rails --pre > > but when I do rails -v, it shows > Rails 2.3.8 > > [ Note: I''ve installed 2.3.8 few days ago. And today I tried to > install the latest version. ] > > So how I can use the latest version instead of the version I installed > few days ago??First check to see what versions of Rails you have installed on your computer sudo gem list --local rails Then you can choose what version of Rails you want to use rails _2.3.8_ --version Note: 2.3.8 is just an example. Put whatever version it is you want in there. You can also delete previous versions of rails sudo gem cleanup Hoped that helped. Anon_comp -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
Thanks, so if I do not delete previous version, will that cause a problem?? On Jul 13, 6:23 am, anon_comp <neocools...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jul 12, 4:45 pm, Roy Yu <iroy2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > Hi all, > > > I''m a newbies for ruby and need some help for installation blocker. > > > I have my ruby installed "ruby 1.9.2dev (2010-07-11 revision 28613) > > [i686-linux]" > > > And then I install the rails > > sudo gem install rails --pre > > > but when I do rails -v, it shows > > Rails 2.3.8 > > > [ Note: I''ve installed 2.3.8 few days ago. And today I tried to > > install the latest version. ] > > > So how I can use the latest version instead of the version I installed > > few days ago?? > > First check to see what versions of Rails you have installed on your > computer > sudo gem list --local rails > > Then you can choose what version of Rails you want to use > rails _2.3.8_ --version > > Note: 2.3.8 is just an example. Put whatever version it is you want in > there. > > You can also delete previous versions of rails > sudo gem cleanup > > Hoped that helped. > Anon_comp-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
Oops, this is what I got. ryu@ryu-laptop:~$ sudo rails _3.0.0.beta4_ --version /usr/local/lib/site_ruby/1.8/rubygems.rb:779:in `report_activate_error'': RubyGem version error: rails(2.3.8 not 3.0.0.beta4) (Gem::LoadError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in `activate'' from /usr/local/lib/site_ruby/1.8/rubygems.rb:1082:in `gem'' from /usr/bin/rails:18 ryu@ryu-laptop:~$ rails -v Rails 2.3.8 On Jul 13, 6:23 am, anon_comp <neocools...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jul 12, 4:45 pm, Roy Yu <iroy2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > Hi all, > > > I''m a newbies for ruby and need some help for installation blocker. > > > I have my ruby installed "ruby 1.9.2dev (2010-07-11 revision 28613) > > [i686-linux]" > > > And then I install the rails > > sudo gem install rails --pre > > > but when I do rails -v, it shows > > Rails 2.3.8 > > > [ Note: I''ve installed 2.3.8 few days ago. And today I tried to > > install the latest version. ] > > > So how I can use the latest version instead of the version I installed > > few days ago?? > > First check to see what versions of Rails you have installed on your > computer > sudo gem list --local rails > > Then you can choose what version of Rails you want to use > rails _2.3.8_ --version > > Note: 2.3.8 is just an example. Put whatever version it is you want in > there. > > You can also delete previous versions of rails > sudo gem cleanup > > Hoped that helped. > Anon_comp-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
On Jul 13, 11:57 am, Roy Yu <iroy2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Oops, this is what I got. > > ryu@ryu-laptop:~$ sudo rails _3.0.0.beta4_ --version > /usr/local/lib/site_ruby/1.8/rubygems.rb:779:in > `report_activate_error'': RubyGem version error: rails(2.3.8 not > 3.0.0.beta4) (Gem::LoadError) > from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in `activate'' > from /usr/local/lib/site_ruby/1.8/rubygems.rb:1082:in `gem'' > from /usr/bin/rails:18 > ryu@ryu-laptop:~$ rails -v > Rails 2.3.8Try without .beta4? I haven''t upgraded to Rails 3.0 so I don''t know exactly how to fix this issue. I''d probably try removing all versions of Rails and install just 3.0 sudo gem uninstall rails If that doesn''t work, well, I don''t know what to tell ya. Hope someone around here can help you. -Anon_comp -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.