Had anyone installed Ruby in a USB Flash Stick?
I installed 1.9.1 using the vxRuby installer, which installs ruby and
wxruby, in my 64GB USB memory stick.
This created the following issues:
- When I run it from a machine that already has ruby installed, I
know from where ruby is running.
- When I try to install any gem, it actuall go to the C-Drive
my USB stick. I noticed that you can tell gem where to install gems,
is not clear to me.
F:>gem help install
Usage: gem install GEMNAME [GEMNAME …] [options] – --build-flags
-i, --install-dir DIR Gem repository directory to get
-n, --bindir DIR Directory where binary files are
For example, since in my case for this period of time my USB is drive F,
thought that this would work, and it does…kind of:
*F:>gem install ezcrypto -i F:\ruby\lib\ruby\gems\1.9.1\gems
*Successfully installed ezcrypto-0.7.2
1 gem installed
Installing ri documentation for ezcrypto-0.7.2…
Installing RDoc documentation for ezcrypto-0.7.2…
ERROR: While executing gem … (TypeError)
can’t convert Pathname into String
This installs the gem but in the folder specified, but it does not
dir for the gem. It puts all the files in
I was expecting something like:
The other problem that you can see is installing the documentation. This
appears to be a known bug because it is happening on every machine where
installed 1.9.1. For now I am not too worry about it.
Comments from anyone will be appreciated.