Ubuntu installs cross tool chain, problem prompt: command not found

Ubuntu installed the tool chain of nuc980, configured the environment variables, and entered the command to verify whether it is correct. The error message: command not found.

arm-nuvoton-linux-uclibceabi-gcc -v

90554efa326514aa641ba871d3d99872.png

Check the official document < NUC980 Linux BSP User Manual >. The manual information indicates that libc6-dev is required for the cross-compilation tool chain, as follows:

7847603887eee39362f6abc34732af8f.png

To install the software on Ubuntu, the instructions are:

sudo apt install libc6-dev

5a14455ce548468ef85ca7c30f20c238.png

Enter the command again to verify, and find that an error message is still reported: command not found. Check the environment variables, the environment variables are also correct. Solution: Enter the command to reboot.

reboot

After restarting, enter the command again:

arm-nuvoton-linux-uclibceabi-gcc -v

It can be seen that the version information of the configured specified tool chain can be obtained. The final result is as follows:

xyz@ubuntu:~$ arm-nuvoton-linux-uclibceabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-nuvoton-linux-uclibceabi-gcc
COLLECT_LTO_WRAPPER=/home/xyz/Desktop/nginx/arm_linux_4.8/bin/../libexec/gcc/arm-nuvoton-linux-uclibceabi/4.8.4/lto-wrapper
Target: arm-nuvoton-linux-uclibceabi
Configured with: ../configure --prefix=/usr/local/arm_linux_4.8 --target=arm-nuvoton-linux-uclibceabi --enable-static --disable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --enable-target-optspace --disable-libsanitizer --enable-tls --disable-libmudflap --enable-threads --without-isl --without-cloog --with-float=soft --disable-decimal-float --with-abi=aapcs-linux --with-cpu=arm926ej-s --with-float=soft --with-mode=arm --enable-languages=c,c++ --enable-poison-system-directories --enable-shared --disable-libgomp --with-sysroot=/usr/local/arm_linux_4.8 --with-build-time-tools=/usr/local/arm_linux_4.8/arm-nuvoton-linux-uclibceabi/bin --enable-shared
Thread model: posix
gcc version 4.8.4 (GCC)

Welcome to follow the public account: Embedded Learning and Practice

Guess you like

Origin blog.csdn.net/weixin_46158019/article/details/133446724