티스토리 뷰

728x90
반응형

혹시 위와 같이 실행파일을 실행하려고 하는데 No such file or directory 라고 나온적이 있으신가요?

그렇다면 Linux 에서 아래 명령어를 통해서 64bit 환경에서 32bit ELF 실행파일을 실행시킬 수 있도록 라이브러리를 설치해주시면 됩니다.

 

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386

 

그러면 아래와 같은 내용으로 설치가 진행되게 됩니다.

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libgcc1:i386
Suggested packages:
  glibc-doc:i386 locales:i386
The following NEW packages will be installed:
  libc6:i386 libgcc1:i386
0 upgraded, 2 newly installed, 0 to remove and 170 not upgraded.
Need to get 0 B/2601 kB of archives.
After this operation, 10.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
Selecting previously unselected package libgcc1:i386.
(Reading database ... 40638 files and directories currently installed.)
Preparing to unpack .../libgcc1_1%3a8.4.0-1ubuntu1~18.04_i386.deb ...
Unpacking libgcc1:i386 (1:8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libc6:i386.
Preparing to unpack .../libc6_2.27-3ubuntu1.5_i386.deb ...
Unpacking libc6:i386 (2.27-3ubuntu1.5) ...
Setting up libc6:i386 (2.27-3ubuntu1.5) ...
Setting up libgcc1:i386 (1:8.4.0-1ubuntu1~18.04) ...
Processing triggers for libc-bin (2.27-3ubuntu1.2) ...

 

그리고 다시 실행파일을 실행시켜보면 아래와 같이 잘 실행되는 것을 확인할 수 있습니다.

 

- 끝 -

728x90
반응형
댓글