Install the Arm-Linux cross compiler correctly in four steps

Source: Internet
Author: User

Have you ever metRedHat5.0 install Arm-Linux crossoverCompilerIs there always a problem of installation errors? The author of this article has also encountered this situation, but after some exploration, he has successfully solved the above problems. Let's take a look!

The correct method for installing the Arm-Linux cross compiler is as follows:

First, I used the cross-Editor eabi-4.3.3_embedsky_20100610.tar.bz2,

1. First, create a directory for storing the cross compiler. The absolute path of the directory I created is/opt/TQ (TQ is the directory I created)

2. Decompress eabi-4.3.3_embedsky_20100610.tar.bz2:

tar xjvf  EABI-4.3.3_EmbedSky_20100610.tar.bz2

After the file is decompressed, two directories are generated in the TQ Directory: opt, usr;

3. Add environment variables:

Add in/etc/profile

# Path manipulationif [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
pathmunge /opt/TQ/opt/EmbedSky/4.3.3/bin/
fi

Source/etc/profile takes effect after adding;

4. Run the following command on the console:

cp     /opt/TQ/opt/EmbedSky/4.3.3/bin    /usr/local/arm

Conclusion: The following error occurs when steps 1 and 2 are missing:

arm-none-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory

Experience: Use the following command to decompress the package:

tar xjvf  EABI-4.3.3_EmbedSky_20100610.tar.bz2   -C/

You can skip step 4.

-C/: Decompress the package to the specified directory. The root directory is specified here. Because the directory structure inside the package contains usr/local/arm, therefore, to decompress the package to the root directory is to decompress the file to the/usr/local/arm folder.

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.