天天看点

关于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

继续阅读