Completely uninstalling one-click installer

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

ยทยทยท

-----Original Message-----
From: Victor Shepelev [mailto:vshepelev@imho.com.ua]
Sent: Wednesday, May 03, 2006 6:12 AM
To: ruby-talk ML
Subject: Completely uninstalling one-click installer

Hi all.

Here is the situation: a few monthes ago I've started my excersises with
Ruby. I've downloaded One-Cilck Installer, installed it and was happy.
I've
installed also rubygems, rdoc, some third-party libraries, bla-bla-bla.

Now I have a wish to make "self-containing" distribution of my program
(with
interpreter itself, and mininum libraries). To study, shat is "minimum",
I've completely uninstalled Ruby, and then trying to start onlu ruby.exe
(taken from latest snaphot):

ruby.exe test.rb

I receive the strange message:

ruby: no such file to load -- ubygems (LoadError)

WTF? I think there remained somewhere system variables or something like
this, which says ruby to look for rubygems? (I don't know, if this
message
must be on completely clear computer, but I think it is not).

Would be happy for your advices.

Thanks.

Victor.

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

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.

Thanks Jamal, very helpful!

Hope this helps,
Jamal

Victor.