[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

rubyscript2exe problem (yes another

Anselm Ei.

12/10/2006 9:44:00 AM

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

--
Posted via http://www.ruby-....

5 Answers

Alex Fenton

12/10/2006 11:58:00 AM

0

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

David Mullet

12/10/2006 3:43:00 PM

0

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

Anselm Ei.

12/10/2006 4:31:00 PM

0

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)

--
Posted via http://www.ruby-....

Anselm Ei.

12/10/2006 4:34:00 PM

0

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

--
Posted via http://www.ruby-....

Anselm Ei.

12/10/2006 4:59:00 PM

0

works now.
tmp rights are rwxrwxrwt
thanks

--
Posted via http://www.ruby-....