rubyscript2exe.rb issue

V

vinod

I have created some script which runs fine when i ran it from the
command promt ruby file.rb.
but when i conver it to exe using rubyscript2exe & tried to ran the
exe it gave me following error
I didnt find WINDOWS-1252.rb file on my machine. so question
1)how it running from command prompt without this file

I also tried packing the iconv.rb file into exe package but still no
luck
Can anybody please help me on this?

Vinod
----------------------------------------------------------------------------------------------------------------------
no such file to load -- rexml/encodings/WINDOWS-1252.rb
C:/DOCUME~1/VINOD_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/lib/rexml/
parsers/treeparser.rb:89:in `parse': #<ArgumentError: No decoder found
for encodin
g WINDOWS-1252. Please install iconv.> (REXML::parseException)
C:/DOCUME~1/VINOD_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/lib/rexml/
encoding.rb:42:in `encoding='
C:/DOCUME~1/VINOD_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/lib/rexml/
source.rb:47:in `encoding='
C:/DOCUME~1/VINOD_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/lib/rexml/
parsers/baseparser.rb:203:in `pull'
C:/DOCUME~1/VINOD_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/lib/rexml/
parsers/treeparser.rb:21:in `parse'
C:/DOCUME~1/VINOD_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/lib/rexml/
document.rb:190:in `build'
C:/DOCUME~1/VINOD_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/lib/rexml/
document.rb:45:in `initialize'
C:\DOCUME~1\VINOD_~1\LOCALS~1\Temp\eee.solutionfile.exe.2\app
\solutionfile.rb:25
C:\DOCUME~1\VINOD_~1\LOCALS~1\Temp\eee.solutionfile.exe.2\app
\solutionfile.rb:20
C:\DOCUME~1\VINOD_~1\LOCALS~1\Temp\eee.solutionfile.exe.2\bootstrap.rb:
50
....
No decoder found for encoding WINDOWS-1252. Please install iconv.
Line: 1
Position: 47
Last 80 unconsumed characters:
from C:/DOCUME~1/VINOD_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/
lib/rexml/document.rb:190:in `build'
from C:/DOCUME~1/VINOD_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/
lib/rexml/document.rb:45:in `initialize'
from C:\DOCUME~1\VINOD_~1\LOCALS~1\Temp\eee.solutionfile.exe.
2\app\solutionfile.rb:25
from C:\DOCUME~1\VINOD_~1\LOCALS~1\Temp\eee.solutionfile.exe.
2\app\solutionfile.rb:20
from C:\DOCUME~1\VINOD_~1\LOCALS~1\Temp\eee.solutionfile.exe.
2\bootstrap.rb:50
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top