Build a cross-compiling environment for the development of S3C2440 in Ubuntu

Source: Internet
Author: User
I used the compiled environment arm-linux-gcc-3.4.1.tgz to copy this file to a directory on my Ubuntu computer. I am/home/murufy/Linux_GCC and run the following command: murufy @ murufy-desktop :~ $ CdLinux_GCCmurufy @ murufy-desktop :~ $ Sudotarxvzfarm-linux-gcc-3.4.1.tgz-C

I used the compiled environment arm-linux-gcc-3.4.1.tgz to copy this file to a directory on my Ubuntu computer, my is/home/murufy/Linux_GCC

Run the following command:

Murufy @ murufy-desktop :~ $ Cd Linux_GCC

Murufy @ murufy-desktop :~ $ Sudo tar xvzf arm-linux-gcc-3.4.1.tgz-C/

The command arm-linux-gcc will be installed in the/usr/local/arm/3.4.1 directory.

Then modify the environment variable.

Murufy @ murufy-desktop :~ $ Sudo gedit/etc/bash. bashrc

Add the following:

If [-d/usr/local/arm]; then

PATH =/usr/local/arm/3.4.1/bin: "$ {PATH }"

Fi

Log out of the system and enter the terminal:

Murufy @ murufy-desktop :~ $ Arm-linux-gcc-V

If it succeeds, a bunch of information is displayed, including the version number. If it fails, the command cannot be found or other errors are prompted.

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.