larsch/ocra

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

Closed this issue · 7 comments

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

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.

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

Same. Ruby 2.4.1p111 on 32-bit Win7.

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.

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.

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

Fixed in 1.3.10.