Error Installing Rails Invalid Gem Format
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Mac Rails install— error: Error installing rails: invalid gem format for /Users/…/cache/railties-3.2.3.gem up vote 2 down vote favorite Using the Ruby on Rails tutorial for OSX here: http://ruby.railstutorial.org/book/ruby-on-rails-tutorial It states to install the rails via "$ gem install rails -v 3.2.3", and when I do that I get the error Error installing rails: invalid gem format for /Users//.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/cache/railties-3.2.3.gem ruby-on-rails osx gem install share|improve this question edited May 4 '12 at 5:54 Mr Lister 24.9k85381 asked May 3 '12 at 20:29 Dan Klos 362213 1 This isn't exactly fixing the problem, but to get around it I just did $ gem install rails -v 3.2.2 Note that's v 3.2.2 instead of 3.2.3. Hopefully it doesn't effect me later in the tutorial :-) –Dan Klos May 3 '12 at 20:33 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted Sounds like your gem dependencies got messed up. Reinstall all your gems with this command: gem pristine --all --no-extensions share|improve this answer answered May 6 '12 at 21:20 Andrew Lauer Barinov 2,30964474 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? B
In Installation Problem: Invalid Gem format dizz (Guest) on 2008-01-08 10:07 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 Report post Edit Move Delete topic Reply with quote Re: Installation Problem: Invalid Gem format Rwema Aimable (rwm) on 2008-01-09 06:26 I had the same problem and deleted the file /usr/lib/ruby/gems/1.8/cache/ http://stackoverflow.com/questions/10438877/mac-rails-install-error-error-installing-rails-invalid-gem-format-for-users 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 https://www.ruby-forum.com/topic/137985 to work. > > It would be great if anybody could give me a hand. > > Thanks Report post Edit Delete Reply with quote Re: Installation Problem: Invalid Gem format Rafael Guerrero (tierrarara) on 2008-06-27 06:01 i try deleted file and after execute command the file is recreate :( Report post Edit Delete Reply with quote Re: Installation Problem: Invalid Gem format Willie Bens (wbens) on 2008-08-28 19:59 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 Report post Edit Delete Reply with quote Re: Installation Problem: Invalid Gem format Ulric W. (ulric_w) on 2011-07-24 09:08 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 Report post Edit Delete Reply with quote Forum List Topic List New Topic Search Register User List Log In Enable email notification | Enable multi-page view Please log in before posting. Registration is free and takes only a minute. Existing account User name or e-mail address Password Always use SSL (experimental!) NEW: Do you have a Google/GoogleMa
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Foreman doesn't start with “Invalid gemspec” error up vote 5 down vote favorite Like this post I am also trying to complete this heroku tutorial I have installed and used everything (node.js, npm, express) successfully until I got to Foreman. I installed Foreman by first installing Ruby: alex@ubuntu:~$ sudo apt-get install ruby1.9.1 then installing Foreman. I am a newbie to Unix so I "sudo" perhaps unnecessarily here, but I got confirmation in the terminal that it had installed but also some errors: alex@ubuntu:~/NodeHelloWorld$ sudo gem install foreman Invalid gemspec in [/var/lib/gems/1.8/specifications/foreman-0.26.1.gemspec]: invalid date format in specification: "2011-11-10 00:00:00.000000000Z" Invalid gemspec in [/var/lib/gems/1.8/specifications/term-ansicolor-1.0.7.gemspec]: invalid date format in specification: "2011-10-13 00:00:00.000000000Z" Invalid gemspec in [/var/lib/gems/1.8/specifications/foreman-0.26.1.gemspec]: invalid date format in specification: "2011-11-10 00:00:00.000000000Z" Invalid gemspec in [/var/lib/gems/1.8/specifications/term-ansicolor-1.0.7.gemspec]: invalid date format in specification: "2011-10-13 00:00:00.000000000Z" Successfully installed term-ansicolor-1.0.7 Successfully installed foreman-0.26.1 Then when I try to start foreman I get similar: alex@ubuntu:~/NodeHelloWorld$ foreman start Invalid gemspec in [/var/lib/gems/1.8/specifications/foreman-0.26.1.gemspec]: invalid date format in specification: "2011-11-10 00:00:00.000000000Z" Invalid gemspec in [/var/lib/gems/1.8/specifications/term-ansicolor-1.0.7.gemspec]: invalid date format in specification: "2011-10-13 00:00:00.000000000Z" /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:926:in `report_activate_error': Could not find RubyGem foreman (>= 0) (Gem::LoadError) from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:244:in `activate_dep' from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:236:in `activate' from /usr/lib/ruby/vendor_ruby