在ubuntu 64位的机器上执行arm-linux-gcc提示 no such file or directory

时间:2021-09-03 05:52:29

解压好了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


然后 即可.





1213增加:

如果  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   ///<------解决办法.