From: Yaoyao Gu Date: 2006-08-10T08:48:08+09:00 Subject: Re: Question about "No such file to load -- rexml/encodings/ISO-8859-1.rb" Hi Jano, I have tried unpack the exe file, then add the reference of ICONV.rb and ISO-8859-1.rb to the app.eee file. Then I repack the file and run it. I still have the same error as before. I attached the following code that generates this exception. Any hints? begin load 'rexml/encodings/ICONV.rb' instance_eval @@__REXML_encoding_methods Iconv::iconv( UTF_8, @encoding, "" ) rescue LoadError, Exception => err raise "Bad encoding name #@encoding" unless @encoding =~ /^[\w-]+$/ @encoding.untaint enc_file = File.join( "rexml", "encodings", "#@encoding.rb" ) begin load enc_file instance_eval @@__REXML_encoding_methods rescue LoadError puts $!.message raise Exception.new( "No decoder found for encoding #@encoding. Please install iconv." ) end end On Aug 09, 2006 05:44 PM, Jan Svitok wrote: > Fix: > On 8/9/06, Jan Svitok wrote: > > On 8/9/06, Yaoyao Gu wrote: > > First, try adding path to the ISO....rb to %RUBYOPTS%: > > > > set RUBYOPTS=%RUBYOPTS% -Ipath/to/iso88591.rb > > set RUBYOPTS=%RUBYOPTS% -Ipath/to/lib dir > > i.e. set RUBYOPTS=%RUBYOPTS% -Ic:/ruby/lib/1.8 > > Jano >