Solve Bash: Export: Not a valid identifier in fedora 9

Source: Internet
Author: User

An error such as export not a valid identifier occurs when you want to add environment variables to the path during cross-compilation.

The temporary solution is to use export input, but only valid for the current terminal window:

 
Path = $ path:/opt/friendlyarm/toolschain/4.5.1/binexport 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-stream to see the version, this means that the environment variable has been added.

OriginalArticle, You are welcome to reprint it. For more information, see blog.csdn.net/jjzhoujun2010.

Author: Dream fly

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.