rubyscript2exe problem (yes another)

A

Anselm (anonymous)

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
Tracing hello ...
hello
Gathering files...
Copying files...
Stripping...
Creating hello_linux ...hello_linux: 1: Syntax error: "(" unexpected
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
 
A

Alex Fenton

Anselm said:
Creating 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
 
M

mully

Anselm said:
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 Veenstra has done a great job
with it, and the couple 'problems' that I encountered were due to my
failure to read the documentation.

Mully
 
A

Anselm (anonymous)

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)
 
A

Anselm (anonymous)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top