larsch / ocra

One-Click Ruby Application Builder
http://ocra.rubyforge.org/
832 stars 83 forks source link

Error on executing exe "not compatible with the version of windows your're running" #124

Closed EmiliocGarcia closed 7 years ago

EmiliocGarcia commented 7 years ago

After using ocra to create exe file I get the following errors during the process.

  1. shows an "io-console" error

  2. shows what happens when I attempt to run the exe file. capture2 capture

mshem commented 7 years ago

I am getting this same error, on Windows 10. 'The specified executable is not a valid application for this OS platform.' Using ruby 2.0.0p481.

endymion commented 7 years ago

Same problem. Ruby 2.0.0 and 32-bit Windows 10.

EyeOfGnut commented 7 years ago

Same. Ruby 2.4.1p111 on 32-bit Win7.

phlundblom commented 7 years ago

This broke in latest Ocra release (1.3.9). Seems like all previous versions had the Windoze stub binaries (stub.exe, stubw.32 and edicon.exe) built as 32-bit binaries while the latest release is built for x86-64.

illtellyoulater commented 7 years ago

Having the same issue. This is critical! Does anyone have a quick patch?

I am on a Windows 7 32 bit where I installed Ruby and the ocra gem to produce a 32 bit exe, but I'm getting the error mentioned above.

illtellyoulater commented 7 years ago

Ok as a workaround I took the files mentioned by @phlundblom from ocra 1.3.8, then reinstalled ocra 1.3.9 and copied them in C:\Ruby24\lib\ruby\gems\2.4.0\gems\ocra-1.3.9\share\ocra and it worked. Going back to the 1.3.8 gem is a no go because of the "failed to create process" problem.

Building a new release is a quick job in this case, please do it asap. Not being exactly a pro I have no difficulties putting myself in the shoes of young Ruby coders trying to build their first exe's and hitting this kind of walls... It's rather discouraging :(

larsch commented 7 years ago

Fixed in 1.3.10.