Install ARM-LINUX-GCC under Ubuntu

Source: Internet
Author: User

Installation steps:

This is the arm-linux-gcc-4.4.3.tar.gz package released by the friendly arm.

First, the compressed package arm-linux-gcc-4.4.3.tar.gz stored in the OPT directory.

Execute decompression command: sudo tar zxvf arm-gcc-4.4.3.tar.gz

Get the directory as follows:

Decompression after the original compressed package can be deleted, extracted after the path is relatively deep, you can change it a little bit.

sudo mv/opt/opt/friendlyarm/toolschain/opt

This way I get the path of the ARM-LINUX-GCC:

/opt/toolschain/4.4.3/bin

Second, configure the system environment variables, add the cross-compilation tool chain path to the environment variable path, so that you can use these tools in any directory.

Use the command: Vim/etc/profile edit the profile file to add environment variables.

Finish saving exit.

Third, use command: Source/etc/profile make environment variable take effect

Iv. Enter the command arm-linux on the terminal and press the TAB key (multiple clicks) to see that the environment variable setting is successful.

V. Input command: ARM-LINUX-GCC–V

It is also possible to have the following error message:/OPT/TOOLSCHAIN/4.4.3/BIN/ARM-LINUX-GCC:

15:exec:/opt/toolschain/4.4.3/bin/.arm-none-linux-gnueabi-gcc:not found

This problem occurs because Ubuntu is 64-bit, and the workaround is to use the command:

sudo apt-get install ia32-libs to install some 32-bit libraries.

Install ARM-LINUX-GCC under Ubuntu

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.