Topic: Freeze gems causes ERROR: While executing gem ... (Zlib::BufError)

rake --trace rails:freeze:gems causes this error, any idea why? On my dev machine (Windows), I started with ruby gems 0.9.1 and upgraded it to 0.9.4 during my setup for Capistrano. I have kept Rails at 1.2.1 and haven't upgraded it to 1.2.3 although that is the version I installed on the server (FC6). Hence I want to freeze rails 1.2.1 but got this bizzare error. Any help will be much appreciated, thanks.

c:0:Warning: require_gem is obsolete.  Use gem instead.
(in C:/Documents and Settings/Bob/My Documents/user/jiggyme)
** Invoke rails:freeze:gems (first_time)
** Execute rails:freeze:gems
Freezing to the gems for Rails 1.2.1
rm -rf vendor/rails
mkdir -p vendor/rails
cd vendor/rails
Unpacked gem: 'activesupport-1.4.0'
mv activesupport-1.4.0 activesupport
ERROR:  While executing gem ... (Zlib::BufError)
    buffer error
rake aborted!
exit
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/user_interaction.rb:171:in `exit'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/user_interaction.rb:171:in `terminate_i
teraction'
(eval):3:in `terminate_interaction'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:96:in `run'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:30:in `run'
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/tasks/framework.rake:26
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/tasks/framework.rake:25:in `each

c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/tasks/framework.rake:25
c:/ruby/lib/ruby/1.8/fileutils.rb:121:in `chdir'
c:/ruby/lib/ruby/1.8/fileutils.rb:121:in `chdir'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in `chdir'
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/tasks/framework.rake:24
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `call'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke'
c:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7
c:/ruby/bin/rake.bat:25:in `load'
c:/ruby/bin/rake.bat:25

JiggyMe
"Videos that Matter to You" powered by Ruby on Rails

Re: Freeze gems causes ERROR: While executing gem ... (Zlib::BufError)

For those of you that might run into this problem, I had to try an alternate way (thanks to someone on Railsweenie forum) of freezing gems to get past this problem, this is what I had to do instead "rake rails:freeze:edge TAG=rel_1-2-1". Why it works and not the standard way, I have no freaking clue.

JiggyMe
"Videos that Matter to You" powered by Ruby on Rails