Solve bash: export: notavalididentifier in Fedora9

Source: Internet
Author: User
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:

  1. PATH = $ PATH:/opt/FriendlyARM/toolschain/4.5.1/bin
  2. 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.