安装32位库:
sudo apt-get install libc6:i386
用之前的源安装ia32-libs:
sudo -i
cd /etc/apt/sources.list.d
echo "deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse" >ia32-libs-raring.list
apt-get update
apt-get install ia32-libs
rm ia32-libs-raring.list
apt-get update
安装gcc编译时需要的一些类库:
sudo apt-get install gcc-multilib
原文地址:http://blog.csdn.net/u014539401/article/details/44217901