没有那个文件或目录

Ubunut16 支持32程序运行:

报错:

lc@PC:~$ /opt/hisi-linux/x86-arm/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc -v
-bash: /opt/hisi-linux/x86-arm/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc: 没有那个文件或目录

原因:程序是32位的,64位linux默认不支持32位程序

lc@PC:~$ file /opt/hisi-linux/x86-arm/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc
/opt/hisi-linux/x86-arm/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.8, stripped

解决方案:

Ubuntu16添加32位库支持

sudo apt-get install lib32ncurses5 lib32z1

你可能感兴趣的:(环境配置)