From: Mauricio Fernandez Date: 2007-01-30T04:15:20+09:00 Subject: Re: [ANN] FastRI 0.3.0: standalone mode (qri, DRb not needed), additional search methods, extended class info On Tue, Jan 30, 2007 at 02:05:00AM +0900, Pe�a, Botp wrote: > From: Mauricio Julio Fern�ndez Pradier > >Subject: [ANN] FastRI 0.3.0: standalone mode (qri, DRb not needed), > >additional search methods, extended class info > > Any kind soul pls tell my why my fri does not rebuild on my windows box > (linux box is fine) > > Building index. > c:/ruby/lib/ruby/gems/1.8/gems/fastri-0.3.0.1/bin/fastri-server:32:in `initializ > e': No such file or directory - C:\Documents and Settings\pe�aijm/.fastri-index > (Errno::ENOENT) > from c:/ruby/lib/ruby/gems/1.8/gems/fastri-0.3.0.1/bin/fastri-server:32: > in `open' > from c:/ruby/lib/ruby/gems/1.8/gems/fastri-0.3.0.1/bin/fastri-server:32: > in `make_index' Does the C:\Documents and Settings\pe�aijm directory exist? (maybe a problem with the e�e?) It should work if you set the HOME or USERPROFILE environment variables so they point to the actual directory (or alternatively HOMEDRIVE and HOMEPATH). You can also specify the location of the index file to be built/used with --index-file (both in fastri-server and fri/qri) --- some sort of alias (or .bat wrapper) would make this practical. FastRI uses the following code to find the home directory: # Returns the home directory (win32-aware). def find_home # stolen from RubyGems ['HOME', 'USERPROFILE'].each do |homekey| return ENV[homekey] if ENV[homekey] end if ENV['HOMEDRIVE'] && ENV['HOMEPATH'] return "#{ENV['HOMEDRIVE']}:#{ENV['HOMEPATH']}" end begin File.expand_path("~") rescue StandardError => ex if File::ALT_SEPARATOR "C:/" else "/" end end end -- Mauricio Fernandez - http://eigenclass.org - singular Ruby