Arm-linux-gcc: Command not found
1. Set the current user environment variable (invalid for root users)
Open the terminal and enter:
Www.linuxidc.com @ linuxidc :~ $ Sudo gedit ~ /. Bashrc
[Sudo] password for www.linuxidc.com:
Add at the end:
Export PATH =/opt/EmbedSky/4.3.3/bin: $ PATH, where/opt/EmbedSky/4.3.3/bin is the environment variable PATH you need to set.
To make it take effect immediately, run the following command on the terminal:
Www.linuxidc.com @ linuxidc :~ $ Source ~ /. Bashrc
Or restart your computer.
2. Set system environment variables (effective for root users)
Open the terminal and enter:
Www.linuxidc.com @ linuxidc :~ $ Sudo gedit/etc/environment
[Sudo] password for www.linuxidc.com:
Add "colon:" add "your environment variable PATH" at the end of PATH = "...".
To make it effective immediately, run the following command on the terminal:
Www.linuxidc.com @ linuxidc :~ $ Source/etc/environment
Or restart your computer.
If the above test fails, you can add the following sentence at the end of the/etc/profile file!
Export PATH = $ PATH:/opt/EmbedSky/4.3.3/bin
Run the command: root @ ubantu:/opt/EmbedSky/4.3.3/bin # arm-linux-gcc-v (there must be a space between gcc and-v, otherwise, the command cannot be found)
Result: gcc version 4.3.3 is successful.