天天看點

關于ubuntu執行32位程式報錯execvp():No such file or directory的解決方案

    <code>在ubuntu</code>執行一個程式時,居然報錯<code>execvp():No such file or directory</code>,報錯截圖如下圖所示:

關于ubuntu執行32位程式報錯execvp():No such file or directory的解決方案

    <code>ls -all</code>指令檢視确實是存在的,起初以為是權限問題導緻的,于是利用指令<code>sudo chmod 777 xxx</code>賦予權限,然後執行,任然報錯。

    經過<code>google</code>後,發現原因,在<code>ubuntu</code> <code>64位</code>下執行<code>32位</code>需要相應的庫檔案,安裝即可,指令如下:<code>sudo apt-get install lib32stdc++6</code>,安裝完後,在執行就沒問題了,如下圖所示:

關于ubuntu執行32位程式報錯execvp():No such file or directory的解決方案
關于ubuntu執行32位程式報錯execvp():No such file or directory的解決方案

參考連結:

    https://blog.csdn.net/boazheng/article/details/102569525

繼續閱讀