quanpeng@ubuntu:~$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/arm/4.8.3/bin
quanpeng@ubuntu:~$ arm-linux-gcc -v
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/arm/4.8.3/bin
quanpeng@ubuntu:~$ arm-linux-gcc -v
bash: /usr/local/arm/4.8.3/bin/arm-linux-gcc: No such file or directory
出现此问题是兼容性问题,解决方法为:
运行下列代码
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0