I'm having a similar problem, on osx updating rails
$ sudo gem update --system
$ sudo gem update rails
ERROR: Error installing rails:
invalid gem format for /opt/local/lib/ruby/gems/1.8/cache/
activerecord-2.3.5.gem
I've tried deleting the file, doing gem install vs update, etc and
still get this error.
On Dec 1, 2:14 pm, Brian <[email protected]> wrote:
> I've been trying to upgrade InstantRails2.0 to a more recent version
> of rails. I've updated gem to version 1.3.5. When I do a simple 'gem
> update rails', I got the 'Invalid gem format' error for
> activesupport-2.3.5.gem. After researching it and finding a couple
> threads here, I tried to delete this gem from the cache. Still didn't
> work, it just got re-loaded when installing rails. I tried going to
> version 2.3.3 of rails, since I don't need the latest and greatest,
> and a thread here suggested a problem in the latest repository.
>
> I tried manually downloading the activesupport-2.3.3.gem and
> installing from that local downloaded gem. This appeared to work, so
> I downloaded rails-2.3.3.gem and tried to install this local copy. I
> continue to get the 'invalid gem format' for a different gem each
> time. Each time I manually download and 'gem install local' the
> version that last reported the error, and each time I get the 'invalid
> gem format' for another gem.
>
> What's the root problem? I've just finally got rails 2.3.3 to install,
> but I need to do this on another machine as well, and am really not
> looking forward to doing this process again.
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.