簡體   English   中英

無法在Ubuntu ./webupdater上執行二進制文件

[英]Cannot execute binary file on Ubuntu ./webupdater

  1. 我從Ubuntu機器上這里http://wxcode.sourceforge.net/components/webupdate/下載了“預編譯的GTK2樣本”。
  2. 我解壓縮了它,它創建了一個文件夾“simple / v1.0.0”,其中包含可執行文件“webupdater”。
  3. 當我在終端s5 @ s5-desktop上運行此命令時:〜/ ble / simple / v1.0.0 $ ./webupdater -bash:./ webupdater:無法執行二進制文件,它表示無法執行二進制文件。

Ubuntu機器的配置如下。

s5 @ s5-desktop:〜$ uname -a Linux s5-desktop 3.5.0-23-generic#35~minision1-Ubuntu SMP Fri 1月25日17:15:33 UTC 2013 i686 i686 i386 GNU / Linux

請幫忙,為什么會出現這個問題。 謝謝並問候Brajesh ......

你在運行32或64位Ubuntu嗎? - 使用以下命令檢查:

uname -m

EG:“x86_64”是64位,“i686”是32位。

運行file命令以查看可執行文件的內容:

file /bin/ls

這些線程討論這個 -

http://ubuntuforums.org/showthread.php?t=1919786

https://askubuntu.com/questions/359156/how-do-you-run-a-32-bit-program-on-a-64-bit-version-of-ubuntu

我在Ubuntu 14.10,它不再有ia32-libs,用於解決這個問題。 我還沒有找到運行未安裝的二進制文件的解決方案。 在我的情況下,我將不得不考慮在我的系統上編譯應用程序,我將嘗試反饋給原始開發人員......

可能有很多原因:

  1. 檢查文件權限,執行chmod 777 webupdater ,然后再次嘗試執行,
  2. 通過執行file webupdater來檢查文件類型,並將其與系統uname -r進行比較,即兩者都是32位,64位或不是。 file webupdater輸出可以為您提供更多信息。

當我執行文件webupdater時,它給出了下面給出的輸出

s5 @ s5-desktop:〜/ ble / simple / v1.0.0 $ file webupdater webupdater:ELF 64位LSB可執行文件,x86-64,版本1(SYSV),動態鏈接(使用共享庫),用於GNU / Linux 2.4 .0,剝離

和Ubuntu系統是32位

謝謝,Brajesh ......

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM