ubuntu 14.04 64位无法安装ia32-libs,此包已被移除
sudo apt-get install ia32-libs
替换为
sudo apt-get install libc6:i386
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
上面这些包基本上都是基本必备库,另外编译中需要到的各个库可以搜索相应的版本,进行安装,例如:
➜ /home/yanwzh > sudo apt-cache search libelf
libelf-dev - libelf1 development libraries and header files
libelf1 - library to read and write ELF files
libelfg0 - an ELF object file access library
libelfg0-dev - an ELF object file access library: development files
libelf-freebsd-1 - library to read and write ELF files
libelf-freebsd-dev - Development files for libelf (FreeBSD version)
➜ /home/yanwzh > sudo apt-get install libelf-dev:i386
使用sudo apt-get install somepkg:i386 来强制安装32位版本