ubuntu 16.04 64 bit compatible 32 bit program three step

  • 2021-01-19 22:42:46
  • OfStack

Step 1: Identify the architecture of your system


dpkg --print-architecture
 Output: 
amd64
 The results for  amd64  Representation system is 64 bit 

Step 2: Verify that multi-schema support is turned on


dpkg --print-foreign-architectures
 Output: 
i386

If there is no i386 output here, you need to turn on multi-schema support


sudo dpkg --add-architecture i386
sudo apt-get update

Step 3: Install the corresponding 32-bit library


sudo apt-get dist-upgrade ( # this 1 The next step is to update all the software. If you don't need the new version, you can skip it )
 Or just install the relevant libraries 
sudo apt-get install lib32z1 lib32ncurses5  Some still need it 32 position stdc++ library  lib32stdc++6-4.8-dbg ) 
 The installation gcc multilab
sudo apt-get install gcc-multilib g++-multilib 

conclusion


Related articles: