# Freezing rails in windows brings up a "permission denied"

**URL:** <https://www.ruby-forum.com/t/freezing-rails-in-windows-brings-up-a-permission-denied/161146>\
**Category:** Rails\
**Created:** [February 23, 2009, 9:03pm UTC](https://www.ruby-forum.com/t/freezing-rails-in-windows-brings-up-a-permission-denied/161146 "2009-02-23T21:03:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@Stex](https://www.ruby-forum.com/u/Stex)\
**Post date:** [February 23, 2009, 9:03pm UTC](https://www.ruby-forum.com/t/freezing-rails-in-windows-brings-up-a-permission-denied/161146/1 "2009-02-23T21:03:33Z")

</div>

Hi,

it’s the first time for me to get a rails-application running on  
webspace, so I have to freeze my application to include my gems and  
rails.  
I tried many times with new and existing applications but always got  
an error. I searched in the internet but it seems I’m the only one  
with this (or the only rails programmer using windows…).

Maybe it’s just a stupid thing which I forgot to do, but I don’t know  
how to fix this, maybe someone can help me.

Thanks in advance!

* * *

C:\Workspace\rails\test3\>rake rails:freeze:gems --trace  
(in C:/Workspace/rails/test3)  
\*\* Invoke rails:freeze:gems (first\_time)  
\*\* Execute rails:freeze:gems  
Freezing to the gems for Rails 2.2.2  
rm -rf vendor/rails  
mkdir -p vendor/rails  
cd vendor/rails  
Unpacked gem: ‘C:/Workspace/rails/test3/vendor/rails/  
activesupport-2.2.2’  
mv activesupport-2.2.2 activesupport  
Unpacked gem: ‘C:/Workspace/rails/test3/vendor/rails/  
activerecord-2.2.2’  
mv activerecord-2.2.2 activerecord  
rm -rf vendor/rails  
rake aborted!  
Permission denied - activerecord-2.2.2 or activerecord  
C:/Ruby/lib/ruby/1.8/fileutils.rb:505:in `rename' C:/Ruby/lib/ruby/1.8/fileutils.rb:505:in`mv’  
C:/Ruby/lib/ruby/1.8/fileutils.rb:1395:in `fu_each_src_dest' C:/Ruby/lib/ruby/1.8/fileutils.rb:1411:in`fu\_each\_src\_dest0’  
C:/Ruby/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest' C:/Ruby/lib/ruby/1.8/fileutils.rb:494:in`mv’  
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1072:in `mv' C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/tasks/framework.rake:28 C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/tasks/framework.rake: 26:in`each’  
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/tasks/framework.rake:26  
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.8.3/lib/rake.rb:1072:in `chdir' C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/tasks/framework.rake:25 C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `execute' C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in`each’  
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute' C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in`invoke\_with\_call\_chain’  
C:/Ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize' C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in`invoke\_with\_call\_chain’  
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke' C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in`invoke\_task’  
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in  
`top_level' C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in`each’  
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in  
`top_level' C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in`standard\_exception\_handling’  
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in  
`top_level' C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in`run’  
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in  
`standard_exception_handling' C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in`run’  
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31  
C:/Ruby/bin/rake:19:in `load’  
C:/Ruby/bin/rake:19

---

<div class="post-metadata">

**Author:** ![Stex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@Stex](https://www.ruby-forum.com/u/Stex)\
**Post date:** [February 25, 2009, 12:43am UTC](https://www.ruby-forum.com/t/freezing-rails-in-windows-brings-up-a-permission-denied/161146/2 "2009-02-25T00:43:50Z")

</div>

> rm -rf vendor/rails  
> rake aborted!  
> Permission denied - activerecord-2.2.2 or activerecord  
> C:/Ruby/lib/ruby/1.8/fileutils.rb:505:in `rename' C:/Ruby/lib/ruby/1.8/fileutils.rb:505:in`mv’

can you delete vendor/rails?  
Sometimes unzipping files gives them ‘weird’ permissions–copying the  
entire directory structure to a new directory sometimes helps, sometimes  
opening cygwin bash and running chmod a+rwx \* -R sometimes helps. Do  
what you can 🙂  
-=r
