?

Run 32bit binaries on a 64bit environment on Debian.

By logderman | foreverhereintheEther | 27 Jun 2024


If you have experienced the error while trying to run an executable on debian: "bash: <executable>: No such file or directory". Then you may not have the arch libraries required for running 32bit binaries.

1. In the terminal type:

file example #where example is the name of the binary

Output: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV) #hence you need 32bit dynamic linker and other dependencies

2.

sudo dpkg --add-architecture i386

3.

sudo apt update -y

4.

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

 

Congratulations you can now run 32bit binaries on your 64bit system.

I wrote this because debians website is not direct on how to do this. I don't know why. Here is a reference to their site:

https://wiki.debian.org/Multiarch/HOWTO

 

 

https://www.publish0x.com?a=3YaOPqMLbx

 

 

How do you rate this article?

5

Publish0x

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.