# Help with gem freeze

**URL:** <https://www.ruby-forum.com/t/help-with-gem-freeze/125658>\
**Category:** Rails\
**Created:** [January 11, 2008, 12:43am UTC](https://www.ruby-forum.com/t/help-with-gem-freeze/125658 "2008-01-11T00:43:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eggman2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Post date:** [January 11, 2008, 12:43am UTC](https://www.ruby-forum.com/t/help-with-gem-freeze/125658/1 "2008-01-11T00:43:51Z")

</div>

I’m having trouble with rake rails:freeze:gems on both my windows and  
linux machines and I was wondering if someone can help.

In Windows I’m getting this error. It seems that it can’t rename  
activesupport due to permissions, but I’m not sure what to do. The  
files in activesupport-2.0.1 seem to be writable.  
C:\InstantRails\rails\_apps\timesheet\>rake rails:freeze:gems -  
(in C:/InstantRails/rails\_apps/timesheet)  
\*\* Invoke rails:freeze:gems (first\_time)  
\*\* Execute rails:freeze:gems  
Freezing to the gems for Rails 2.0.1  
Unpacked gem: ‘activesupport-2.0.1’  
rake aborted!  
Permission denied - activesupport-2.0.1 or activesupport  
C:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:505:in `rename C:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:505:in`mv’

In Linux, I’m getting the following, despite checking both /usr/bin/  
gem and framework.rake to make sure that rubygems/gem\_runner was being  
required right after rubygems.  
\*\* Invoke rails:freeze:gems (first\_time)  
\*\* Execute rails:freeze:gems  
Freezing to the gems for Rails 2.0.1  
rake aborted!  
uninitialized constant Gem::GemRunner  
/usr/lib64/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:2028:in  
`const_missing' /usr/lib64/ruby/gems/1.8/gems/rails-2.0.1/lib/tasks/framework.rake:26 /usr/lib64/ruby/gems/1.8/gems/rails-2.0.1/lib/tasks/framework.rake: 25:in`each’  
/usr/lib64/ruby/gems/1.8/gems/rails-2.0.1/lib/tasks/framework.rake:25  
/usr/lib/ruby/1.8/fileutils.rb:121:in `chdir' /usr/lib/ruby/1.8/fileutils.rb:121:in`chdir’  
/usr/lib64/ruby/gems/1.8/gems/rails-2.0.1/lib/tasks/framework.rake:24

---

<div class="post-metadata">

**Author:** ![eggman2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Post date:** [January 11, 2008, 1:10am UTC](https://www.ruby-forum.com/t/help-with-gem-freeze/125658/2 "2008-01-11T01:10:14Z")

</div>

Maybe try  
gem update --system

I think I had that problem with old gems

Good Luck
