Friday, August 11, 2017

ubuntu add 32-bit arch on 64-bit

To run a 32-bit executable file on a 64-bit multi-architecture Ubuntu system, you have to add the i386 architecture and install some extra library packages:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
sudo apt-get install  lib32gcc1 lib32stdc++6

No comments:

Post a Comment