最近想给ubuntu16.04配置交叉编译环境,具体可以看别的博客,但是发现安装 ia32-libs出现下图的错误
解决办法为:分别执行
sudo apt-get install g+±multilib
sudo apt-get install libncurses5:i386
sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386
之后运行arm-linux-gcc -v
如下图
如果编译出现如下错误时
/home/xianbinrao/arm-linux-work/4.4.3/bin/…/lib/gcc/arm-none-linux-gnueabi/4.4.3/…/…/…/…/arm-none-linux-gnueabi/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
执行:sudo apt-get install lib32z1