执行可执行文件时,系统提示No such file or directory的解决办法

1.首先查看操作系统的版本uname -a

Linux peterchan-pc 4.4.0-53-generic #74~14.04.1-Ubuntu SMP Fri Dec 2 03:43:31 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

是64位的

当执行可执行文件时,系统提示No such file or directory,主要的原因是因为你当前的操作系统是64位的,而这个可执行文件是32位的,导致系统找不到该执行文件。

2.在Ubuntu中安装i386架构及系列库

sudo dpkg --add-architecture

sudo apt-get update

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386



你可能感兴趣的:(linux操作以及相关问题集合)