2023/11/27

centos執行指令出現錯誤 cannot execute binary file

 在centos上安裝好不斷電系統的agent後,執行程式時,會出現 cannot execute binary file的錯誤訊息。

但這個agent在其他台linux系統安裝都沒問題。

後來查發現是系統架構不同。

先執行uname -m,查到系統是i686的。

接著執行 file 執行檔名稱,結果該檔案是x86-64,所以不相容,只好放棄。


After installing the uninterruptible power supply (UPS) system agent on CentOS, an error message "cannot execute binary file" is encountered when attempting to run the program.

It was later discovered that the issue arises from a different system architecture. When executing uname -m, it was found that the system is i686. Subsequently, running the file command on the executable revealed that the file is x86-64, indicating an incompatibility issue. As a result, the execution had to be abandoned.

沒有留言:

張貼留言