Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sengkyaut/f76bb43e5ad4a1b37d9900b528f901d5 to your computer and use it in GitHub Desktop.
Save sengkyaut/f76bb43e5ad4a1b37d9900b528f901d5 to your computer and use it in GitHub Desktop.
add 32 bit architecture in 64 bit Linux
Commands
------------------------------------------
dpkg --print-architecture
sudo dpkg --add-architecture i386 && sudo apt update
apt-get install lib32z1 lib32ncurses5 lib32stdc++6
------------------------------------------
dpkg --add-architecture i386 (enable multi-arch)
apt-get update
apt-get install libc6:i386 (install base 32bit libraries)
-------------------------------------------
Lekensteyn's answer conflicted with lots of existing packages for me (on 64-bit oneiric).
I instead did this, which pulled in the libc6-dev-i386 package:
apt-get install gcc-multilib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment