# Re: Completely uninstalling one-click installer

**URL:** <https://www.ruby-forum.com/t/re-completely-uninstalling-one-click-installer/59463>\
**Category:** Ruby\
**Created:** [May 3, 2006, 7:07pm UTC](https://www.ruby-forum.com/t/re-completely-uninstalling-one-click-installer/59463 "2006-05-03T19:07:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamal86](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ebca7d/32.png) [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Post date:** [May 3, 2006, 7:07pm UTC](https://www.ruby-forum.com/t/re-completely-uninstalling-one-click-installer/59463/1 "2006-05-03T19:07:20Z")

</div>

I have found that the One Click Installer sets an environmental variable  
called RUBYOPT that points to the Ruby Gems library. This causes a  
problem if a copy of the Ruby interpreter is run on the same computer  
from a different folder than the original installation folder, since  
Ruby Gems will not be found in a subfolder of that interpreter.

I have found that this problem can be solved either by clearing the  
ROBYOPT variable, or by creating a file called ubygems.rb in the same  
folder as the interpreter. Note that the initial ‘r’ is missing from  
ubygems.rb. That file can be empty, that is, contain no executable code  
(comments are o.k.). Apparently, the interpreter will look for this  
file if the RUBYOPT variable is set, but only the existence of the file  
is necessary for the main script to continue.

Hope this helps,  
Jamal

---

<div class="post-metadata">

**Author:** ![jamal86](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ebca7d/32.png) [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Post date:** [May 3, 2006, 7:07pm UTC](https://www.ruby-forum.com/t/re-completely-uninstalling-one-click-installer/59463/2 "2006-05-03T19:07:28Z")

</div>

FYI, the latest version of the One-Click installer which will be  
released soon includes changes to better manage RUBYOPT. Now if  
RUBYOPT is not defined before installation it will be removed upon  
uninstallation, and if it is defined then -rubygems will be added to  
it without destroying the original value.

In addition RUBYOPT is only changed if you choose the option to  
“Enable Rubygems” during installation.

Regards,  
Ryan

---

<div class="post-metadata">

**Author:** ![jamal86](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ebca7d/32.png) [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Post date:** [May 3, 2006, 7:07pm UTC](https://www.ruby-forum.com/t/re-completely-uninstalling-one-click-installer/59463/3 "2006-05-03T19:07:28Z")

</div>

> (comments are o.k.). Apparently, the interpreter will look for this  
> file if the RUBYOPT variable is set, but only the existence of the file  
> is necessary for the main script to continue.

Thanks Jamal, very helpful!

> Hope this helps,  
> Jamal

Victor.
