From: Luis Lavena Date: 2011-05-23T00:36:08+09:00 Subject: Re: rubyscript2exe error message On May 22, 10:31 am, Gavin Chen wrote: > First I used "gem install reubyscript2exe" to install > > When I use "rubyscript2exe file.rb" it will show below error message > > C:/Ruby187/lib/ruby/gems/1.8/rubyscript2exe-0.5.3/bin/rubyscript2exe:5:in > 'replace':can't modify frozen string (TypeError) > > from > C:/Ruby187/lib/ruby/gems/1.8/gems/rubyscript2exe-0.5.3/bin/rubyscript2exe:5 > > from C:/Ruby187/bin/rubyscript2exe:19:in 'load' > from C:/Ruby187/bin/rubyscript2exe:19 > > And I used reubyscript2exe on Hello.rb(just print "hello") > > it also show the same error message as above. > > How do I fix the error message? > I personally don't have a solution for rubyscript2exe gem, specially since hasn't been an update to it since 2007. You might have better results using Ocra: http://ocra.rubyforge.org/ Which supports latest version of Ruby (1.9.x) and works perfectly with latest version of RubyGems. HTH, -- Luis Lavena