larsch / ocra

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

FATAL ERROR: Bad signature in executable. #178

Open abarrak opened 2 years ago

abarrak commented 2 years ago

Hi,

I'm receiving this error when using OCRA on Windows 10

>my-script.exe
FATAL ERROR: Bad signature in executable.

Command:

ocra --no-dep-run --gem-full --gemfile Gemfile --add-all-core --dll ruby_builtin_dlls\libssp-0.dll --dll ruby_builtin_dlls\libgmp-10.dll my-script.rb
Delikt commented 2 years ago

If you using Ruby Version Ruby+Devkit 3.1.0-1 (x64) uninstall this version and try Version Ruby+Devkit 3.0.3-1 (x64) instead..

make sure you have a Gemfile to install the gems quickly

i got the same Error with the 3.1.0 Version... and all working fine with 3.0.3

abarrak commented 2 years ago

If you using Ruby Version Ruby+Devkit 3.1.0-1 (x64) uninstall this version and try Version Ruby+Devkit 3.0.3-1 (x64) instead..

Actually I tried with version 2.7.3 and 2.4 but the same error is exhibited. I believe it's related to the operating system Win10 setup inside a corporate with security signing is hardened. Somehow I think this PR will contribute to resolve the issue.

make sure you have a Gemfile to install the gems quickly

Already did.

Vucius commented 2 years ago

On Windows,I think the key is \ and / After I typed --dll ruby_builtin_dlls\libssp-0.dll,I get the same problem But not with --dll ruby_builtin_dlls/libssp-0.dll