From: Will Parsons Date: 2010-05-26T07:05:08+09:00 Subject: Re: Does rubyscript2exe still work? Mark Estefanos wrote: > Will Parsons wrote: >> Mark Marksest wrote: >>> Will Parsons wrote: >>> >>>> I'm not sure how well ocra is maintained. It's broken if you want to >>>> use >>>> prawn - there's a bug report on this, but no sign of activity. I had to >>>> find a patched version of rubyscript2exe because ocra didn't work for >>>> me. >>> >>> Do you have a link to the patched version of rubyscript2exe? >> >> I *think* this is where I got it: >> http://github.com/cowlibob/rubyscript2exe >> >> If you have problems, I can send you the version I have. > > It gives me this error: > I typed this in : C:\Users\Mark>rubyscript2exe helloworld.rb > Error: > C:/Ruby/lib/ruby/gems/1.8/gems/rubyscript2exe-0.5.3/bin/rubyscript2exe:5:in > `rep > lace': can't modify frozen string (TypeError) > from > C:/Ruby/lib/ruby/gems/1.8/gems/rubyscript2exe-0.5.3/bin/rubyscript2 > exe:5 > from C:/Ruby/bin/rubyscript2exe:19:in `load' > from C:/Ruby/bin/rubyscript2exe:19 > I installed the gem. > This is probably something really stupid I missed. > Any help? > Thanks I'm not sure why it's invoking the gem when you're manually running the (presumably patched) version from your own account. Maybe you should uninstall the gem to avoid confusion. FWIW, this is how I'm invoking it in my Makefile (for a program called recepsum): recepsum.exe: recepsum.rb ruby rubyscript2exe.rb recepsum.rb --rubyscript2exe-rubyw -- Will