Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Rubyscript2exe error

Reply
Thread Tools

Rubyscript2exe error

 
 
David Mitchell
Guest
Posts: n/a
 
      06-09-2005
When I try to convert my project with rubyscript2exe I get the following
problem:

c:/projects/> tar2rubyscript.rb wxgui
Creating archive...
Creating wxgui.rb ...

c:/projects/> rubyscript2exe.rb wxgui.rb
C:/projects/rubyscript2exe.rb:153:in `next_entry': undefined me
thod `length' for nil:NilClass (NoMethodError)
from C:/projects/rubyscript2exe.rb:145:in `each'
from C:/projects/rubyscript2exe.rb:131:in `extract'
from C:/projects/rubyscript2exe.rb:344:in `extract'
from C:/projects/rubyscript2exe.rb:344:in `open'
from C:/projects/rubyscript2exe.rb:344:in `extract'
from C:/projects/rubyscript2exe.rb:339:in `newlocation'
from C:/projects/rubyscript2exe.rb:339:in `extract'
from C:/projects/rubyscript2exe.rb:534

I have written an init.rb, so I'm not sure what I'm doing wrong.
--
David Mitchell
Software Engineer
Telogis

NOTICE:
This message (including any attachments) contains CONFIDENTIAL
INFORMATION intended for a specific individual and purpose, and
is protected by law. If you are not the intended recipient,
you should delete this message and are hereby notified that any
disclosure, copying, or distribution of this message, or the
taking of any action based on it, is strictly prohibited.


 
Reply With Quote
 
 
 
 
Erik Veenstra
Guest
Posts: n/a
 
      06-09-2005
> When I try to convert my project with rubyscript2exe I get
> the following problem:
>
> C:/projects/rubyscript2exe.rb:153:in `next_entry': undefined
> me thod `length' for nil:NilClass (NoMethodError) from


Your version of rubyscript2exe.rb is probably corrupt. The
problem occurs in the RBA part, not in RubyScript2Exe itself.

To make things clear: I created an RBA of my application
(RubyScript2Exe) with Tar2RubyScript. You created an RBA of
your application with Tar2RubyScript. The next step (the one
which fails) is to use my RBA to "compile" your RBA. My RBA is
failing. Not the application in it (RubyScript2Exe), but the
bootstrapping part.

> I have written an init.rb, so I'm not sure what I'm doing
> wrong.


Your init.rb has nothing to do with RubyScript2Exe. Your
init.rb is the entry point of your RBA. If you can do "ruby
wxgui.rb", you'll know if you built the RBA correctly.

gegroet,
Erik V. - http://www.erikveen.dds.nl/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when running an exe created with rubyscript2exe pihentagy Ruby 0 09-10-2008 01:16 PM
Error when running an exe created with rubyscript2exe Rakesh Pai Ruby 0 09-03-2008 07:30 AM
when i using "rubyscript2exe", occur error Cool Wong Ruby 4 06-26-2007 03:59 PM
Rubyscript2exe FileUtils error conker Ruby 3 01-11-2007 03:48 AM
Rubyscript2exe error Graham Ruby 2 06-08-2005 08:32 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57