# Problem with tar2rubyscript

**URL:** <https://www.ruby-forum.com/t/problem-with-tar2rubyscript/178125>\
**Category:** Ruby\
**Created:** [October 29, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/problem-with-tar2rubyscript/178125 "2009-10-29T15:07:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![svceon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/74df32/32.png) [@svceon](https://www.ruby-forum.com/u/svceon)\
**Post date:** [October 29, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/problem-with-tar2rubyscript/178125/1 "2009-10-29T15:07:40Z")

</div>

Hi, im new to RoR, im developing in Linux Ubuntu (9.04) and im having  
problems with tar2rubyscript:

my final point of this app is to test the

tar2rubyscript myapp/  
rubyscript2exe myapp.rb

so that i can execute the rails application in a windows environment  
without installing the whole RoR framework on the windows pc.  
after configuring and developing the test application, i try in  
terminal:

“tar2rubyscript myapp/” so that i can then do the:  
“rubyscript2exe myapp.rb”

but in the tar2rubyscript command i get the folowing error:

“tar2rubyscript mayapp/  
/home//.gem/ruby/1.8/gems/tar2rubyscript-0.4.8/bin/tar2rubyscript:5:in  
`replace': can't modify frozen string (TypeError) from /home/<user>/.gem/ruby/1.8/gems/tar2rubyscript-0.4.8/bin/tar2rubyscript:5 from /var/lib/gems/1.8/bin/tar2rubyscript:19:in`load’  
from /var/lib/gems/1.8/bin/tar2rubyscript:19”

ive already searched, googled, jeronimooed, no luck, i get a lot of  
matches in the ‘rubyscript2exe’ when people expose the problem about  
‘tar2rubyscript’ but still no luck even if doing the solution presented.

thanks in advance, any help?

---

<div class="post-metadata">

**Author:** ![svceon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/74df32/32.png) [@svceon](https://www.ruby-forum.com/u/svceon)\
**Post date:** [October 29, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/problem-with-tar2rubyscript/178125/2 "2009-10-29T15:50:38Z")

</div>

Samuel Caeiro wrote:

> Hi, im new to RoR, im developing in Linux Ubuntu (9.04) and im having  
> problems with tar2rubyscript:
> 
> my final point of this app is to test the
> 
> tar2rubyscript myapp/  
> rubyscript2exe myapp.rb
> 
> so that i can execute the rails application in a windows environment  
> without installing the whole RoR framework on the windows pc.  
> after configuring and developing the test application, i try in  
> terminal:
> 
> “tar2rubyscript myapp/” so that i can then do the:  
> “rubyscript2exe myapp.rb”
> 
> but in the tar2rubyscript command i get the folowing error:
> 
> “tar2rubyscript mayapp/  
> /home//.gem/ruby/1.8/gems/tar2rubyscript-0.4.8/bin/tar2rubyscript:5:in  
> `replace': can't modify frozen string (TypeError) from /home/<user>/.gem/ruby/1.8/gems/tar2rubyscript-0.4.8/bin/tar2rubyscript:5 from /var/lib/gems/1.8/bin/tar2rubyscript:19:in`load’  
> from /var/lib/gems/1.8/bin/tar2rubyscript:19”
> 
> ive already searched, googled, jeronimooed, no luck, i get a lot of  
> matches in the ‘rubyscript2exe’ when people expose the problem about  
> ‘tar2rubyscript’ but still no luck even if doing the solution presented.
> 
> thanks in advance, any help?

SOLVED:

don’t know why, but the  
“/home//.gem/ruby/1.8/gems/tar2rubyscript-0.4.8/bin/tar2rubyscript”  
couldn’t have the ‘replace’ so i replaced it with a ‘=’ and it worked.
