Linux Installation cross-compilation tool

Source: Internet
Author: User

Taking arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2 as an example

1. Get the cross-compilation tool to install. (generally available on chip manufacturers, can also be downloaded by themselves)

2. Using the tar command: Tar jxvf arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2 is installed into the current directory (after the tar parameters can be transformed according to the specific compression format)

3. Use Find, pwd to get the installation path

Go to the previous step and unzip the directory using Find to find the bin directory. -name bin. If the following cross-compilation tool is in the bin directory, this is a cross-compilation tool catalog

 Perform PWD acquisition path (absolute path) under current directory

Xxx/xxx/software/gcc-3.4.5-glibc-2.3.6/bin

4. Execute sudo vi/etc/profile

Add the path acquired by PWD to the end of the file, save exit

  

5. Use command: Source/etc/profile make environment variable effective

6, enter the command on the terminal Arm-linux Press the TAB key, you can see that the environment variable setting is successful

7. Take one of the cross-compilation tools to view the installation results arm-linux-gcc-v, as shown below, that the installation was successful.

Linux Installation cross-compilation tool

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.