Rubyscript2exe problem (yes another)

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

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

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

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)

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

works now.
tmp rights are rwxrwxrwt
thanks