红联Linux门户
Linux帮助

ubuntu64位上执行arm-linux-gcc提示no such file or directory

发布时间:2016-05-07 15:02:43来源:linux网站作者:sno_guo

解压好了arm-linuxg-gcc 放到了$PATH路径下, 无论怎么执行都提示说: no such file or directory,可明明有这个文件的.

N遍之后, 执行了 file arm-linux-gcc发现这个命令是32位的, 需要安装兼容包,于是apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386:

ia32-libs

libstdc++5:i386 libstdc++6:i386

然后即可.


如果  sno@sno:~$ arm-linux-gcc shanchu.c
/opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory   ///<----------错误
sno@sno:~$ sudo apt-get install lib32z1   ///<------解决办法.


本文永久更新地址:http://www.linuxdiyf.com/linux/20417.html