[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

I use exerb to generate exe file,but it doesnt work

Toto Toto

4/6/2008 5:56:00 AM

my program is just

puts "hello world"



I use exerb to generate exe file,
"exerb a.rb"
it generate a exe file: a.exe
when i enter it
nothing happen
I just see a cmd windows flash
why?


my
exerb is 4.2
ruby 1.8.5
windows XP
--
Posted via http://www.ruby-....

3 Answers

Mohit Sindhwani

4/6/2008 7:28:00 AM

0

Toto Toto wrote:
> my program is just
>
> puts "hello world"
>
>
>
> I use exerb to generate exe file,
> "exerb a.rb"
> it generate a exe file: a.exe
> when i enter it
> nothing happen
> I just see a cmd windows flash
> why?
>
>
> my
> exerb is 4.2
> ruby 1.8.5
> windows XP
>

I haven't used exerb but I think you may need to run a.exe from the
command line. It sounds like you're double clicking on it in Windows.

If I understand it correctly, you click on the file name, it opens a
command window, prints "hello world" and exits the program, therefore
closing the command window after that.

Cheers
Mohit.


Tom Cloyd

4/6/2008 8:11:00 AM

0

Mohit Sindhwani wrote:
> Toto Toto wrote:
>> my program is just
>>
>> puts "hello world"
>>
>>
>>
>> I use exerb to generate exe file,
>> "exerb a.rb"
>> it generate a exe file: a.exe
>> when i enter it
>> nothing happen
>> I just see a cmd windows flash
>> why?
>>
>>
>> my
>> exerb is 4.2
>> ruby 1.8.5
>> windows XP
>>
>
> I haven't used exerb but I think you may need to run a.exe from the
> command line. It sounds like you're double clicking on it in Windows.
>
> If I understand it correctly, you click on the file name, it opens a
> command window, prints "hello world" and exits the program, therefore
> closing the command window after that.
>
> Cheers
> Mohit.
>
>
>
Yes - and if this is happening, simply open a command window first, then
launch your exe file from the command line - "ruby {name}.exe". The
command window should remain open upon program termination.

t.

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tom Cloyd, MS MA, LMHC
Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< tc@tomcloyd.com >> (email)
<< TomCloyd.com >> (website & psychotherapy weblog)
<< sleightmind.wordpress.com >> (mental health issues weblog)
<< directpathdesign.com >> (web site design & consultation)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Toto Toto

4/6/2008 9:01:00 AM

0

Mohit Sindhwani wrote:
> Toto Toto wrote:
>> nothing happen
>> I just see a cmd windows flash
>> why?
>>
>>
>> my
>> exerb is 4.2
>> ruby 1.8.5
>> windows XP
>>
>
> I haven't used exerb but I think you may need to run a.exe from the
> command line. It sounds like you're double clicking on it in Windows.
>
> If I understand it correctly, you click on the file name, it opens a
> command window, prints "hello world" and exits the program, therefore
> closing the command window after that.
>
> Cheers
> Mohit.




It works.

Thank you very much.

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