2
我做了一個非常簡單的程序,用於添加和組織書籍作者/書名數組。我只有一個需求在我創建的模塊的頂部。代碼只是標準的ruby,沒有任何寶石或任何實現。Ruby Ocra可執行致命錯誤在不同的Windows版本
require_relative 'pairs2d'
我用ocra把它變成一個可執行文件,而且.exe在我的windows 7電腦(它安裝了Ruby)上工作正常。當我將.exe放在另一臺計算機上並運行它時,我收到了一個致命錯誤。另一臺電腦是Windows XP,並沒有安裝Ruby。
這是從控制檯輸入> OCRA loonalibrary.rb
Including 53 encoding support files (3349504 bytes, use --no-enc to exclude)
DL is deprecated, please use Fiddle
=== Building loonalibrary.exe
=== Adding user-supplied source files
=== Adding ruby executable ruby.exe
=== Adding detected DLL C:/Ruby200-x64/bin/zlib1.dll
=== Adding detected DLL C:/Ruby200-x64/bin/LIBEAY32.dll
=== Adding detected DLL C:/Ruby200-x64/bin/SSLEAY32.dll
=== Adding detected DLL C:/Ruby200-x64/bin/libffi-6.dll
=== Adding library files
=== Compressing 9780669 bytes
=== Finished building loonalibrary.exe (2478492 bytes)
錯誤後構建,當我跑這不Ruby的Windows XP的計算機上安裝:
FATAL ERROR: Failed to create process (C:\DOCUME~1\mike\LOCALS~1\Temp\ocr6CF.tmp\bin\ruby.exe): 193
是到OCRA敏感Windows版本還是這一些其他問題?如果有人知道解決這個問題,我會非常感謝一些幫助。