Forum: Ruby rubyscript2exe (sorry, I know) gem won't work at all for me

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4fbdf9b95c83976b391aa6f395498b14?d=identicon&s=25 Kanji Yoshikawa (chutenro)
on 2008-11-08 03:55
I'm on a Windows 2k3 machine with new (as of maybe 2 days ago)
installs of Ruby and the rubyscript2exe gem.

I installed the gem, but every time I try to run it I get this error:

C:\Documents and Settings\Administrator\Desktop>rubyscript2exe
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

Doesn't matter if I try to compile a .rb script or just run
"rubyscript2exe" all by itself, same error.  Is there anything I can do?

Thanks,

N
Beb77c4602c3cac7a12149431366ed11?d=identicon&s=25 The Higgs bozo (higgsbozo)
on 2008-11-08 04:24
Kanji Yoshikawa wrote:
>
> C:\Documents and Settings\Administrator\Desktop>rubyscript2exe
> 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 had the same problem.  It works with one-click installer
ruby186-26.exe which is ruby-1.8.6-p111.  I guess there was some
security patch which broke it.
4fbdf9b95c83976b391aa6f395498b14?d=identicon&s=25 Kanji Yoshikawa (chutenro)
on 2008-11-08 05:54
Perfect.  Thanks a million, man.

N


The Higgs bozo wrote:
> Kanji Yoshikawa wrote:
>>
>> C:\Documents and Settings\Administrator\Desktop>rubyscript2exe
>> 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 had the same problem.  It works with one-click installer
> ruby186-26.exe which is ruby-1.8.6-p111.  I guess there was some
> security patch which broke it.
This topic is locked and can not be replied to.