April 26, 2018

How to fix the error that No such file or directory in Linux


Error that no such file or directory

This is an error when running an x86 program on an x64 Linux operating system.

You need to add settings and install related packages to support x86 software.

Follow the procedure below.

$ sudo dpkg --add-architecture i386
$ sudo apt-get update
$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386


Check environment
O      S Ubuntu 16.04 (64bit) CPU Intel i7-4710MQ 2.50GHz
SHELL GNU bash (4.3.48) RAM 1 GB