On 8/9/06, Yaoyao Gu <guy / ece.osu.edu> wrote: > Hi all, > > I am new to Ruby, so forgave me if this question has been asked before. > I am running a software on Windows XP which is written in Ruby . The > script has been converted to exe. I kept getting the following error > message when I run it. > > No such file to load -- rexml/encodinigs/ISO-8859-1.rb > C:\DOCUME~1/username/LOCALS~1/Temp/eee.<executable > name>.2/lib/rexml/encoding.rb:33:in encodinig=': No decoder found for > encoding ISO-8859-1. Please install iconv. > > I know that ISO-8859-1 is the encoder for Latin characters. I checked > the path shown in the error message and there is nothing Ruby there. I > installed Ruby in my computer after that and I do have the file > ISO-8859-1.rb under Ruby directory now. But I am still getting the same > message. So I am not sure if this problem comes up because I am using > Windows. Can I specify the library for the executable to link some how? > > Thanks in advance. > > Yaoyao Hi, your script has been converted to exe with rubyscript2exe (http://www.erikveen.dds.nl/rubyscript2exe/index.html) so maybe there you can find some advice. First, try adding path to the ISO....rb to %RUBYOPTS%: set RUBYOPTS=%RUBYOPTS% -Ipath/to/iso88591.rb and hope that the packed script will pick it up ;-) If not, I would recommend extracting the archive (your.exe --eee-justextract) and checking if the file is there. If not, you can try to provide one (e.g. from your regular ruby installation, and make sure that is as much similar version as possible) and repack. I don't remember the exact process of repacking, I was something like 1. edit .eee file found in the unpacked dir (add reference to iso8859 file), 2. call eee.exe <the .eee file> <destination.exe> Or, you can try running the script with your 'regular' ruby installation. Good luck! Jano