From: nobu.nokada@... Date: 2003-07-25T18:21:08+09:00 Subject: Re: Running a Ruby installation off a CD (under Windows) Hi, At Thu, 24 Jul 2003 18:39:35 +0900, Harry Ohlsen wrote: > I'm asuming I can create a batch file to set up the > appropriate environment variables to allow ruby.exe to find > the libraries (although, that will presumably require > tweaking, to stick in the drive letter of their CD-ROM). You don't have to do it. Since 1.6, ruby.exe sets $LOAD_PATH according to its own path. e.g., $(TOPDIR)/lib/ruby/site_ruby/$(VERSION) $(TOPDIR)/lib/ruby/site_ruby/$(VERSION)/$(SITE_ARCH) $(TOPDIR)/lib/ruby/site_ruby/ $(TOPDIR)/lib/ruby/$(VERSION) $(TOPDIR)/lib/ruby/$(VERSION)/$(ARCH) . where VERSION is 1.6 or 1.8, ARCH is same to RUBY_PLATFORM, SITE_ARCH is i386-msvcrt for 1.8 on mswin32 and mingw32, or same to ARCH otherwise. TOPDIR is the ruby.exe's directory with the last "/bin" removed. -- Nobu Nakada