The following error occurs when you want to add environment variables to the PATH when building a cross-compilation chain in Fedora9. The exportnotavalididentifier temporary solution uses export input, however, it is only valid for the current terminal window: PATH = $ PATH:/opt/FriendlyARM/toolschain/4.5.1/binexport when building a cross-compilation chain in Fedora 9 today, the following error occurs when you want to add environment variables to the PATH: export not a valid identifier.
The temporary solution is to use export input, but only valid for the current terminal window:
- PATH = $ PATH:/opt/FriendlyARM/toolschain/4.5.1/bin
- Export PATH
Then you can add the environment path. However, if you need to directly use the arm-linux-gcc command in all newly created terminals, You need to modify it ~ /. Bashrc file, enter the following in the terminal:
Vi ~ /. Bashrc
Add the following in the last line:
Export PATH = $ PATH:/opt/FriendlyARM/toolschain/4.5.1/bin
Save and exit, and then start a new terminal. You can use the arm-linux-gcc cross-compilation chain. Input arm-linux-gcc-v to see the version, this means that the environment variable has been added.