# Rubyscript2exe problem (yes another)

**URL:** <https://www.ruby-forum.com/t/rubyscript2exe-problem-yes-another/78902>\
**Category:** Ruby\
**Created:** [December 10, 2006, 10:43am UTC](https://www.ruby-forum.com/t/rubyscript2exe-problem-yes-another/78902 "2006-12-10T10:43:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anselmthecrack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/59ef9b/32.png) [@anselmthecrack](https://www.ruby-forum.com/u/anselmthecrack)\
**Post date:** [December 10, 2006, 10:43am UTC](https://www.ruby-forum.com/t/rubyscript2exe-problem-yes-another/78902/1 "2006-12-10T10:43:49Z")

</div>

hello!  
I know this forum is full of problems with rubyscript2exe, but i  
couldn’t find mine here.  
this is what happens:

hello.rb:

puts “hello”

end of hello.rb

> > rubyscript2exe hello.rb  
> > Tracing hello …  
> > hello  
> > Gathering files…  
> > Copying files…  
> > Stripping…  
> > Creating hello\_linux …
> 
> > sh hello\_linux  
> > hello\_linux: 1: Syntax error: “(” unexpected

> > rubyscript2exe hello.rb --rubyscript2exe-verbose  
> > Tracing hello …  
> > hello  
> > Gathering files…  
> > Found /usr/local/lib/site\_ruby/1.8/rubygems.rb .  
> > Found /usr/lib/ruby/1.8/i486-linux/rbconfig.rb .  
> > Found /usr/local/lib/site\_ruby/1.8/rubygems/rubygems\_version.rb .  
> > Found /usr/local/lib/site\_ruby/1.8/rbconfig/datadir.rb .  
> > Found /usr/local/lib/site\_ruby/1.8/rubygems/source\_index.rb .  
> > Found /usr/local/lib/site\_ruby/1.8/rubygems/user\_interaction.rb .  
> > Found /usr/lib/ruby/1.8/forwardable.rb .  
> > Found /usr/lib/ruby/1.8/i486-linux/digest/sha2.so .  
> > Found /usr/lib/ruby/1.8/i486-linux/digest.so .  
> > Found /usr/lib/ruby/1.8/time.rb .  
> > Found /usr/lib/ruby/1.8/parsedate.rb .  
> > Found /usr/lib/ruby/1.8/date/format.rb .  
> > Found /usr/lib/ruby/1.8/rational.rb .  
> > Found /usr/local/lib/site\_ruby/1.8/rubygems/specification.rb .  
> > Found /usr/local/lib/site\_ruby/1.8/rubygems/version.rb .  
> > Found /usr/local/lib/site\_ruby/1.8/rubygems/security.rb .  
> > Found /usr/local/lib/site\_ruby/1.8/rubygems/gem\_openssl.rb .  
> > Found /usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb .  
> > Found /tmp/tar2rubyscript.d.28261.1/rubyscript2exe/rubyscript2exe.rb .  
> > Found /tmp/tar2rubyscript.d.28261.1/rubyscript2exe/ev/ftools.rb .  
> > Found /usr/lib/ruby/1.8/ftools.rb .  
> > Found /usr/lib/ruby/1.8/fileutils.rb .  
> > Found /usr/lib/ruby/1.8/i486-linux/etc.so .  
> > Not all required files are pure Ruby.  
> > Copying files…  
> > Copying /usr/bin/ruby …  
> > Copying /usr/lib/libruby1.8.so.1.8 …  
> > Copying /home/alle/ballerr/hello.rb …  
> > Copying /usr/lib/libruby1.8.so.1.8 …  
> > Stripping…  
> > Creating hello\_linux …

I’m using ubuntu 6.10  
What can i do?

Thanks for answers

---

<div class="post-metadata">

**Author:** ![anselmthecrack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/59ef9b/32.png) [@anselmthecrack](https://www.ruby-forum.com/u/anselmthecrack)\
**Post date:** [December 10, 2006, 1:00pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-problem-yes-another/78902/2 "2006-12-10T13:00:59Z")

</div>

Anselm (anonymous) wrote:

> Creating hello\_linux …
> 
> > > sh hello\_linux  
> > > hello\_linux: 1: Syntax error: “(” unexpected

Rubyscript2exe doesn’t produce a shell script, so don’t run it with sh.

Just do

./hello\_linux

in whatever terminal/shell etc you happen to be in.

hth  
alex

---

<div class="post-metadata">

**Author:** ![anselmthecrack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/59ef9b/32.png) [@anselmthecrack](https://www.ruby-forum.com/u/anselmthecrack)\
**Post date:** [December 10, 2006, 4:45pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-problem-yes-another/78902/3 "2006-12-10T16:45:22Z")

</div>

Anselm (anonymous) wrote:

> I know this forum is full of problems with rubyscript2exe…

This doesn’t really address your problem (Alex has already done that),  
but I’d like to state for the record that I have had great success with  
rubyscript2exe (on Windows). I think Erik V. has done a great job  
with it, and the couple ‘problems’ that I encountered were due to my  
failure to read the documentation.

Mully

---

<div class="post-metadata">

**Author:** ![anselmthecrack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/59ef9b/32.png) [@anselmthecrack](https://www.ruby-forum.com/u/anselmthecrack)\
**Post date:** [December 10, 2006, 5:31pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-problem-yes-another/78902/4 "2006-12-10T17:31:15Z")

</div>

Of course this is a really great script, no question.  
Thanks, I thought you can run any executable on linux with sh.  
But now,when i run ./hello\_linux i get:  
/tmp/eee.main\_linux.2/bin/ruby: warning: Insecure world writable dir  
/tmp, mode 040777  
/tmp/eee.main\_linux.2/bin/ruby: loading from unsafe file  
/tmp/eee.main\_linux.2/bootstrap.rb (SecurityError)

---

<div class="post-metadata">

**Author:** ![anselmthecrack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/59ef9b/32.png) [@anselmthecrack](https://www.ruby-forum.com/u/anselmthecrack)\
**Post date:** [December 10, 2006, 5:34pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-problem-yes-another/78902/5 "2006-12-10T17:34:07Z")

</div>

Oh, is it possible, that my /tmp direcctory has the wrong rights?  
I had a problem some day with it and to fix it i changed the rights to  
world-writable.  
what rights should i use then?  
thanks for your answers

anselm

---

<div class="post-metadata">

**Author:** ![anselmthecrack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/59ef9b/32.png) [@anselmthecrack](https://www.ruby-forum.com/u/anselmthecrack)\
**Post date:** [December 10, 2006, 5:59pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-problem-yes-another/78902/6 "2006-12-10T17:59:13Z")

</div>

works now.  
tmp rights are rwxrwxrwt  
thanks
