# Problem when trying to freeze gem (XP user)

**URL:** <https://www.ruby-forum.com/t/problem-when-trying-to-freeze-gem-xp-user/163132>\
**Category:** Rails\
**Created:** [March 17, 2009, 3:54pm UTC](https://www.ruby-forum.com/t/problem-when-trying-to-freeze-gem-xp-user/163132 "2009-03-17T15:54:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sultan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aeb1de/32.png) [@sultan](https://www.ruby-forum.com/u/sultan)\
**Post date:** [March 17, 2009, 3:54pm UTC](https://www.ruby-forum.com/t/problem-when-trying-to-freeze-gem-xp-user/163132/1 "2009-03-17T15:54:56Z")

</div>

I am on XP. This is the first time I am trying to freeze to a gem.  
This is what I get:

rake rails:freeze:gems --trace  
(in C:/Documents and Settings/Sultan/My Documents/Aptana Studio/  
upload)  
\*\* 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:/Documents and Settings/Sultan/My Documents/Aptana  
Studio/upload/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: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:238: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:** ![sultan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aeb1de/32.png) [@sultan](https://www.ruby-forum.com/u/sultan)\
**Post date:** [March 18, 2009, 2:01am UTC](https://www.ruby-forum.com/t/problem-when-trying-to-freeze-gem-xp-user/163132/2 "2009-03-18T02:01:07Z")

</div>

Urgent Please! Someone help!

---

<div class="post-metadata">

**Author:** ![sultan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aeb1de/32.png) [@sultan](https://www.ruby-forum.com/u/sultan)\
**Post date:** [March 18, 2009, 3:01pm UTC](https://www.ruby-forum.com/t/problem-when-trying-to-freeze-gem-xp-user/163132/3 "2009-03-18T15:01:06Z")

</div>

Urgent Please help

---

<div class="post-metadata">

**Author:** ![sultan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aeb1de/32.png) [@sultan](https://www.ruby-forum.com/u/sultan)\
**Post date:** [March 18, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/problem-when-trying-to-freeze-gem-xp-user/163132/4 "2009-03-18T19:16:39Z")

</div>

On Mar 17, 10:35 am, sultan [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> mkdir -p vendor/rails  
> cd vendor/rails  
> Unpacked gem: 'C:/Documents and Settings/Sultan/My Documents/Aptana  
> Studio/upload/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

If you manually unpack the activesupport-2.2.2 gem, can you rename the  
directory it creates? Try this at the command line:

gem unpack activesupport --version ‘= 2.2.2’  
mv activesupport-2.2.2 activesupport

Also, for reference, what version of Rubygems are you running (do a  
‘gem --version’)?

CC me directly for quicker replies.

–Matt J.

---

<div class="post-metadata">

**Author:** ![sultan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aeb1de/32.png) [@sultan](https://www.ruby-forum.com/u/sultan)\
**Post date:** [March 19, 2009, 3:34pm UTC](https://www.ruby-forum.com/t/problem-when-trying-to-freeze-gem-xp-user/163132/5 "2009-03-19T15:34:42Z")

</div>

Hi Matt,

In my “my documents” directory (outside of Aptana Studio) I created a  
new project “rails testout -d mysql”, then in the testout directory  
(cd testout) I tried “rake rails:freeze:gems” and still get the same  
error. I can’t figure out why this won’t work.

I then created a new project in Apatana Studio “testin”. I then did  
(in the command line) the rails:freeze:edge RELEASE=2.2.2 step  
manually and made sure that I unzipped the file in /testin/vendor  
directory. It seems to work. I can start the server and run rake jobs.  
The only thing missing is rails/  
REVISION\_dc88847e5ce392eed210b97525c14fca55852867. Do you think this  
is a good work around?

---

<div class="post-metadata">

**Author:** ![sultan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aeb1de/32.png) [@sultan](https://www.ruby-forum.com/u/sultan)\
**Post date:** [March 21, 2009, 9:27pm UTC](https://www.ruby-forum.com/t/problem-when-trying-to-freeze-gem-xp-user/163132/6 "2009-03-21T21:27:27Z")

</div>

There’s still something really weird going on with your Rubygems  
install, but I haven’t got any ideas on how to debug it. Maybe some  
other Windows users here can help? It wouldn’t hurt, of course, to do  
the standard Windows troubleshooting routine (remove your Ruby install  
and try again)…

Freezing to edge works, but I’d encourage you to upgrade to 2.3.2 if  
at all possible. While the shiny new features may get all the press,  
there are _many_ bug fixes in there as well.

–Matt J.

---

<div class="post-metadata">

**Author:** ![sultan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aeb1de/32.png) [@sultan](https://www.ruby-forum.com/u/sultan)\
**Post date:** [March 18, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/problem-when-trying-to-freeze-gem-xp-user/163132/7 "2009-03-18T19:35:26Z")

</div>

I guess I am running 1.3.1. I thought I was running 2.2.2
