I've seen this before, in this thread:

http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/48eed477f7519760/9c1eac3b3145b984

Can you manually unpack activesupport (use 'gem unpack activesupport')
and then run 'perms \whatever\path\you\unpacked\it\to'?
There's something weird going on with the permissions on that
directory.

Also, are you running as an admin or with a limited user account? It
may make a difference, so try it as an admin if you aren't already.

--Matt Jones


On Apr 18, 2:26 am, skt <stibre...@gmail.com> wrote:
> I am hoping someone will have some thoughts on this issue. I even
> tried creating a completely fresh rails app and then running rake
> rails:freeze:gems right after the app creation and I get the same
> error
>
> I ran the command with --trace and I get the output as below. I looked
> at the code in fileutils.rb (where trace points to) and found that it
> tries to do a simple rename of activesupport-2.2.2 to activesupport
> (as also indicated in the output). I don't understand why it does that
> renaming but when I run the same command "rename activesupport-2.2.2
> activesupport" on my command line it runs fine without giving the
> "permission denied error" I am seeing in the output.
>
> Any thoughts or pointers on what the issue maybe or how I can debug
> further? Has anyone else seen this problem?
>
> Thanks for your help.
> -S
>
> D:\myPadosi\test>rake rails:freeze:gems --trace
> (in D:/myPadosi/test)
> ** 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: 'D:/myPadosi/test/vendor/rails/activesupport-2.2.2'
> mv activesupport-2.2.2 activesupport
> rm -rf vendor/rails
> rake aborted!
> Permission denied - activesupport-2.2.2 or activesupport
> c:/ruby/lib/ruby/1.8/fileutils.rb:501:in `rename'
> c:/ruby/lib/ruby/1.8/fileutils.rb:501:in `mv'
> c:/ruby/lib/ruby/1.8/fileutils.rb:1379:in `fu_each_src_dest'
> c:/ruby/lib/ruby/1.8/fileutils.rb:1395:in `fu_each_src_dest0'
> c:/ruby/lib/ruby/1.8/fileutils.rb:1377:in `fu_each_src_dest'
> c:/ruby/lib/ruby/1.8/fileutils.rb:490:in `mv'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1070: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.4/lib/rake.rb:1070: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.4/lib/rake.rb:617:in `call'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `execute'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `execute'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:578:in
> `invoke_with_call_chain'
> c:/ruby/lib/ruby/1.8/monitor.rb:238:in `synchronize'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in
> `invoke_with_call_chain'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:564:in `invoke'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in
> `invoke_task'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in
> `top_level'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `each'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in
> `top_level'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in
> `standard_exception_handling'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1999:in
> `top_level'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1977:in `run'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in
> `standard_exception_handling'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in `run'
> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake:31
> c:/ruby/bin/rake:19:in `load'
> c:/ruby/bin/rake:19
>
> On Apr 17, 11:21 am, skt <stibre...@gmail.com> wrote:
>
> > Folks,
>
> > I am trying to freeze rails but am running into some errors that I
> > don't understand. I have tried couple ways based on results I got from
> > searching on the web as below. I thought freezing rails would be a
> > simple and quick thing but am stuck here. Any thoughts on what I may
> > be doing wrong?
>
> > Thanks,
> > -S
>
> > ------------------------------------- First Way
> > ---------------------------------------
> > D:\myPadosi\Trunk>rake rails:freeze:edge TAG=rel_2-2-2
> > (in D:/myPadosi/Trunk)
> > cd vendor
> > Downloading Rails fromhttp://dev.rubyonrails.org/archives/rails_edge.zip
> > Unpacking Rails
> > rm -rf rails
> > c:/ruby/bin/rake: No such file or directory - unzip rails.zip
> > rm -f rails.zip
> > rm -f rails/Rakefile
> > rm -f rails/cleanlogs.sh
> > rm -f rails/pushgems.rb
> > rm -f rails/release.rb
> > touch rails/REVISION_abb899c54e8777428b7a607774370ba29a5573bd
> > rake aborted!
> > No such file or directory - rails/
> > REVISION_abb899c54e8777428b7a607774370ba29a5573bd
>
> > ------------------------------------- Second Way
> > ---------------------------------------
>
> > D:\myPadosi\Trunk>rake rails:freeze:edge RELEASE=2.2.2
> > (in D:/myPadosi/Trunk)
> > cd vendor
> > Downloading Rails fromhttp://dev.rubyonrails.org/archives/rails_2.2.2.zip
> > Unpacking Rails
> > rm -rf rails
> > c:/ruby/bin/rake: No such file or directory - unzip rails.zip
> > rm -f rails.zip
> > rm -f rails/Rakefile
> > rm -f rails/cleanlogs.sh
> > rm -f rails/pushgems.rb
> > rm -f rails/release.rb
> > touch rails/REVISION_abb899c54e8777428b7a607774370ba29a5573bd
> > rake aborted!
> > No such file or directory - rails/
> > REVISION_abb899c54e8777428b7a607774370ba29a5573bd
>
> > ------------------------------------- Third Way
> > ---------------------------------------
> > --------------- Not sure why it is giving a permission denied error
> > -------------
>
> > D:\myPadosi\Trunk>rake rails:freeze:gems
> > (in D:/myPadosi/Trunk)
> > Freezing to the gems for Rails 2.2.2
> > rm -rf vendor/rails
> > mkdir -p vendor/rails
> > cd vendor/rails
> > Unpacked gem: 'D:/myPadosi/Trunk/vendor/rails/activesupport-2.2.2'
> > mv activesupport-2.2.2 activesupport
> > rm -rf vendor/rails
> > rake aborted!
> > Permission denied - activesupport-2.2.2 or activesupport
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to