From: Ruby Student Date: 2009-03-21T00:22:27+09:00 Subject: Re: Installing Ruby and Ruby Gems in a USB Flash Stick --0016e6461678f79f9004658e857f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Fri, Mar 20, 2009 at 11:12 AM, Alex Fenton wrote: > Ruby Student wrote: > > Had anyone installed Ruby in a USB Flash Stick? >> > > ... > > > 1. When I run it from a machine that already has ruby installed, I don't >> know from where ruby is running. >> 2. When I try to install any gem, it actuall go to the C-Drive instead >> of >> my USB stick. I noticed that you can tell gem where to install gems, but >> it >> is not clear to me. >> > > You should look into setting a PATH environment variable to tell the system > you're working on to look for the 'ruby' and 'gem' executables on the USB > stick, rather than on C:/ etc. Have a look at: > > http://www.google.co.uk/search?q=path+environment > > alex > > Thanks Alex! -- Ruby Student --0016e6461678f79f9004658e857f--