Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Ruby Script to .exe
Index -> Programming, Ruby -> Ruby Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
yuyumo




PostPosted: Sun Aug 21, 2011 11:12 am   Post subject: Re: Ruby Script to .exe

Hi,
I've Netbeans 6.9.1 and I installed the rubyscript2exe.rb in the Shell with:
code:
gem install rubyscript2exe.gem

It was successful.

Now, I'm trying to convert my main.rb with it, but it doesn't work!

First I put this line on the top of the code of my main.rb:
code:
rubyscript2exe main.rb


Secondly I tried to convert it to exe in the shell with this command:
code:
gem rubyscript2exe main.rb

Here I'm getting the following:

code:

C:\Programme\NetBeans 6.9.1\ruby\jruby-1.5.1\bin>rubyscript2exe main.rb
Couldn't create file rubyscript2exe/CHANGELOG: No such file or directory - rubyscript2exe/CHANGELOG
Couldn't create file rubyscript2exe/eee.ico: No such file or directory - rubyscript2exe/eee.ico
Couldn't create file rubyscript2exe/eee.rc: No such file or directory - rubyscript2exe/eee.rc
Couldn't create file rubyscript2exe/init.rb: No such file or directory - rubyscript2exe/init.rb
Couldn't create file rubyscript2exe/LICENSE: No such file or directory - rubyscript2exe/LICENSE
Couldn't create file rubyscript2exe/README: No such file or directory - rubyscript2exe/README
Couldn't create file rubyscript2exe/SUMMARY: No such file or directory - rubyscript2exe/SUMMARY
Couldn't create file rubyscript2exe/VERSION: No such file or directory - rubyscript2exe/VERSION
Couldn't create file rubyscript2exe/ev/ftools.rb: No such file or directory - rubyscript2exe/ev/ftools.rb
Couldn't create file rubyscript2exe/ev/oldandnewlocation.rb: No such file or directory - rubyscript2exe/ev/oldandnewloca
tion.rb
Couldn't create file rubyscript2exe/ev/dependencies.rb: No such file or directory - rubyscript2exe/ev/dependencies.rb
Couldn't create file rubyscript2exe/rubyscript2exe.rb: No such file or directory - rubyscript2exe/rubyscript2exe.rb
Couldn't create file rubyscript2exe/eee.pas: No such file or directory - rubyscript2exe/eee.pas
Couldn't create file rubyscript2exe/require2lib.rb: No such file or directory - rubyscript2exe/require2lib.rb
Couldn't create file rubyscript2exe/eee.exe: No such file or directory - rubyscript2exe/eee.exe
Couldn't create file rubyscript2exe/eeew.exe: No such file or directory - rubyscript2exe/eeew.exe
Couldn't create file rubyscript2exe/eee_linux: No such file or directory - rubyscript2exe/eee_linux
C:/Programme/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rubyscript2exe-0.5.3/realstuff.rb:395:in `each_objec
t': ObjectSpace is disabled; each_object will only work with Class, pass -X+O to enable (RuntimeError)
        from C:/Programme/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rubyscript2exe-0.5.3/realstuff.rb:395:i
n `extract'
        from C:/Programme/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rubyscript2exe-0.5.3/realstuff.rb:598
        from C:/Programme/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rubyscript2exe-0.5.3/realstuff.rb:7:in
`load'
        from C:/Programme/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rubyscript2exe-0.5.3/bin/rubyscript2exe
:7
        from C:/Programme/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rubyscript2exe-0.5.3/bin/rubyscript2exe
:19:in `load'
        from C:\Programme\NetBeans 6.9.1\ruby\jruby-1.5.1\bin\rubyscript2exe:19

C:\Programme\NetBeans 6.9.1\ruby\jruby-1.5.1\bin>




Thanx for your help!
Sponsor
Sponsor
Sponsor
sponsor
Velocity




PostPosted: Mon Nov 28, 2011 11:12 am   Post subject: RE:Ruby Script to .exe

YOU HAVE TO IDENTIFY THE RB SHELL IN YOUR LIBRARY/RUBY DIRECTORY sorry for caps it was just an obvious mistake or ask tony.
Display posts from previous:   
   Index -> Programming, Ruby -> Ruby Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 17 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: