# 1.8.4 One-Click deletes my Rails gems!

**URL:** <https://www.ruby-forum.com/t/1-8-4-one-click-deletes-my-rails-gems/97815>\
**Category:** Ruby\
**Created:** [July 10, 2006, 6:47pm UTC](https://www.ruby-forum.com/t/1-8-4-one-click-deletes-my-rails-gems/97815 "2006-07-10T18:47:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [July 10, 2006, 6:47pm UTC](https://www.ruby-forum.com/t/1-8-4-one-click-deletes-my-rails-gems/97815/1 "2006-07-10T18:47:16Z")

</div>

I noticed that Curt posted the 1.8.4 OCI to RubyForge over the weekend,  
so I used it today to install 1.8.4 (I had 1.8.2 here at work).

After doing so, I no longer had any of my Rails gems and need to  
reinstall (which is a real pain with the firewall here… have to  
download the gems manually, etc.)

Anyone else have this problem?

Thanks!  
Jeff

> **[Hey Daddio!](http://www.softiesonrails.com)**
>
> Home of Hey Daddio Software

---

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [July 10, 2006, 6:59pm UTC](https://www.ruby-forum.com/t/1-8-4-one-click-deletes-my-rails-gems/97815/2 "2006-07-10T18:59:20Z")

</div>

This happens during the uninstall of the old Ruby installation.

---

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [July 10, 2006, 7:09pm UTC](https://www.ruby-forum.com/t/1-8-4-one-click-deletes-my-rails-gems/97815/3 "2006-07-10T19:09:08Z")

</div>

Jeff C. wrote:

> I noticed that Curt posted the 1.8.4 OCI to RubyForge over the weekend,  
> so I used it today to install 1.8.4 (I had 1.8.2 here at work).
> 
> After doing so, I no longer had any of my Rails gems and need to  
> reinstall (which is a real pain with the firewall here… have to  
> download the gems manually, etc.)
> 
> Anyone else have this problem?

This was discussed on ruby-talk a few times as Curt was released RC  
versions of the installer.

The installer should have made it clear that it was going to obliterate  
your entire ruby installation destination directory (typically c:\ruby).  
That happens to be a parent of where gems go, so they are deleted as  
well if you are reusing the same location.

Maybe this is dopey, but have you checked the recycle bin?

(I’ve decided not to upgrade until I have a good migration plan that  
ensures I do not lose any of my installed gems and other 3rd-party libs  
and files, and do not have to jump through hoops to get everything  
working the same. Suggestions welcome.)

–  
James B.

[http://www.ruby-doc.org](http://www.ruby-doc.org) - Ruby Help & Documentation  
[Ruby Code & Style](http://www.artima.com/rubycs/) - The Journal By & For Rubyists  
[http://www.rubystuff.com](http://www.rubystuff.com) - The Ruby Store for Ruby Stuff  
[http://www.jamesbritt.com](http://www.jamesbritt.com) - Playing with Better Toys  
[http://www.30secondrule.com](http://www.30secondrule.com) - Building Better Tools

---

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [July 10, 2006, 8:46pm UTC](https://www.ruby-forum.com/t/1-8-4-one-click-deletes-my-rails-gems/97815/4 "2006-07-10T20:46:07Z")

</div>

James B. wrote:

> This was discussed on ruby-talk a few times as Curt was released RC  
> versions of the installer.

Sorry I missed it somehow.

> The installer should have made it clear that it was going to obliterate  
> your entire ruby installation destination directory (typically c:\ruby).  
> That happens to be a parent of where gems go, so they are deleted as  
> well if you are reusing the same location.

When I ran the OCI, it prompted me to uninstall 1.8.2, and it didn’t  
cross my mind that I was about to blow away all of my gems, too.

I wonder if I could have said No to that prompt, if it would have simply  
overwritten the old files.

Argh.

Thanks anyway.

---

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [July 10, 2006, 7:15pm UTC](https://www.ruby-forum.com/t/1-8-4-one-click-deletes-my-rails-gems/97815/5 "2006-07-10T19:15:29Z")

</div>

On 7/10/06, James B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> (I’ve decided not to upgrade until I have a good migration plan that  
> [http://www.rubystuff.com](http://www.rubystuff.com) - The Ruby Store for Ruby Stuff  
> [http://www.jamesbritt.com](http://www.jamesbritt.com) - Playing with Better Toys  
> [http://www.30secondrule.com](http://www.30secondrule.com) - Building Better Tools

Not perfect (at least not automated), but copying your  
C:\ruby\lib\ruby\gems\1.8\cache  
directory and then doing a batch install of those files locally works  
pretty well. As for non-gem apps, I keep them in version control with  
a batch to reinstall.

pth

---

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [July 10, 2006, 11:44pm UTC](https://www.ruby-forum.com/t/1-8-4-one-click-deletes-my-rails-gems/97815/6 "2006-07-10T23:44:16Z")

</div>

On 7/10/06, Jeff C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > That happens to be a parent of where gems go, so they are deleted as  
> > Thanks anyway.  
> > I’m sorry… I just now (in response to this) changed the installer  
> > script  
> > to make this explicit.

Curt

---

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [July 11, 2006, 5:59am UTC](https://www.ruby-forum.com/t/1-8-4-one-click-deletes-my-rails-gems/97815/7 "2006-07-11T05:59:04Z")

</div>

Curt H. wrote:

> I’m sorry… I just now (in response to this) changed the installer  
> script  
> to make this explicit.
> 
> Curt

Thanks a lot, Curt!

Jeff

> **[Hey Daddio!](http://www.softiesonrails.com)**
>
> Home of Hey Daddio Software

---

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [July 10, 2006, 9:23pm UTC](https://www.ruby-forum.com/t/1-8-4-one-click-deletes-my-rails-gems/97815/8 "2006-07-10T21:23:53Z")

</div>

Jeff C. wrote:

> When I ran the OCI, it prompted me to uninstall 1.8.2, and it didn’t  
> cross my mind that I was about to blow away all of my gems, too.
> 
> I wonder if I could have said No to that prompt, if it would have simply  
> overwritten the old files.

No. Check the list archives for the discussion on the installer  
behavior and the reasons behind it.

–  
James B.

“I often work by avoidance.”

- Brian Eno
