32bit的交叉编译器在ubuntu14.04 64bit下运行

时间:2022-09-01 10:59:57

最近硬盘坏道严重,之前装的11.04不能用了,于是换了个硬盘,也趁机装个新一点的ubuntu14.04。

ubuntu 64位系统运行32位程序的问题

执行命令的时候总出现如下:

/opt/EmbedSky/4.3.3/bin/arm-linux-gcc: 3: exec: arm-none-linux-gnueabi-gcc: not found
提示没有哪个文件和目录。
需要安装运行32位程序的兼容库ia32-libs.
sudo apt-get install ia32-libs


root@ubuntu:/opt/EmbedSky# apt-get install ia32-libs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  lib32z1 lib32ncurses5 lib32bz2-1.0

E: Package 'ia32-libs' has no installation candidate
root@ubuntu:/opt/EmbedSky# apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

安装完之后就可以了。上面的问题是因为从13.10开始,64位元ubuntu已经中止支援ia32-libs了