【实践】在Ubuntu 64位上安装32位版arm-linux交叉工具链

####之前在电脑上安装了最新版的Ubuntu 64位系统,可是正确安装arm-linux交叉编译工具链后,无法使用.

####于是就在网上搜索解决方案,网络搜索的结果是:安装32位共享库即可,并给出了命令

sudo apt-get install ia32-libs

####或者

sudo apt-get install ia32-lib*

####可是执行后,无法安装,提示信息如下:

jiasike@jiasike:~$ sudo apt-get install ia32-libs
[sudo] password for jiasike: 
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
iasike@jiasike:~$ sudo apt-get install ia32-lib*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ia32-libs_0.4_amd64.deb
E: Couldn't find any package by regex 'ia32-libs_0.4_amd64.deb'

####根据提示信息,我们知道需要执行这条命令:

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

执行后arm-linux交叉工具链就能正常使用了。

读者的情况不会和我的一模一样,不过没有关系,你只需要根据提示信息,做进一步的尝试,问题自然会解决的。

更多精彩资讯,请扫码关注。

你可能感兴趣的:(嵌入式Linux系统)