Hey I am having a problem installing rails on my ubuntu machine. I cannot install any gems and keep on getting the following error. ERROR: Error installing rails: invalid gem format for /usr/lib/ruby/gems/1.8/cache/ activerecord-2.0.2.gem I have tried updating rubygems, manually installing rubygems (not using synaptic) and still cannot get ruby gems to work. It would be great if anybody could give me a hand. Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I had the same problem and deleted the file /usr/lib/ruby/gems/1.8/cache/ activerecord-2.0.2.gem resolved the problem for me. Hope is helps dizz wrote:> Hey I am having a problem installing rails on my ubuntu machine. I > cannot install any gems and keep on getting the following error. > > ERROR: Error installing rails: > invalid gem format for /usr/lib/ruby/gems/1.8/cache/ > activerecord-2.0.2.gem > > I have tried updating rubygems, manually installing rubygems (not > using synaptic) and still cannot get ruby gems to work. > > It would be great if anybody could give me a hand. > > Thanks-- 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 -~----------~----~----~----~------~----~------~--~---
i try deleted file and after execute command the file is recreate :( -- 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 -~----------~----~----~----~------~----~------~--~---
Hello Folks: I had the same problem, but with actionpack-2.1.0.gem. The way I solved it was by deleting actionpack, and then updating gems: cd /usr/lib/ruby/gems/1.8/cache/ rm actionpack-2.1.0.gem cd /usr/local/rubygems-0.9.5/ gem update –system gem install rails --include-dependencies Thanks. --Willie -- 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I''ve just made: sudo apt-get remove ruby1.8 sudo apt-get remove ruby1.8-dev sudo apt-get remove rubygems1.8 sudo apt-get install ruby1.9.2 sudo apt-get install ruby1.9.2-dev sudo apt-get install rubygems1.9.2 and everything''s ok -- 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-/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.