rubyscript2exe が "can't modify frozen string" エラー
cygwin の ruby を 1.8.7にバージョンアップしたところ、rubyscript2exe.rb がエラーを吐くようになってしまった。
rubyscript2exe.rb:621:in `replace': can't modify frozen string (TypeError) from rubyscript2exe.rb:621 from rubyscript2exe.rb:577:in `newlocation' from rubyscript2exe.rb:505:in `newlocation' from rubyscript2exe.rb:472:in `newlocation' from rubyscript2exe.rb:505:in `newlocation' from rubyscript2exe.rb:577:in `newlocation' from rubyscript2exe.rb:619
$0 が fronzenされているのが原因らしい。
newlocation do if __FILE__ == $0 - $0.replace(File.expand_path("./init.rb")) + $_0 = File.expand_path("./init.rb") + alias $0 $_0 TAR2RUBYSCRIPT = true unless defined?(TAR2RUBYSCRIPT)
ソース: Google グループ