The problem of Arm-linux-gcc:command not found __linux

Source: Internet
Author: User

It's been a long day and it's finally done.

Ubuntu does not have root permissions, just started with a lot of trouble, check a lot of information, finally Arm-linux-gcc:command not found problem solved.


Problem:

sudo tar jxvfcross-2.95.3.tar.bz2

Exportpath= $PATH:/usr/local/arm/2.95.3/bin

Using Arm-linux-gcc–v to check for cross-compiler installation success

Tar jxvfkernel.tar.bz2

Generate Kernel directory after decompression

sudo make clean

sudo makemenuconfig

sudo make zimage

Hint Error:

Arm-linux-gcc:command NotFound

Path there are/usr/local/arm/2.95.3/bin,/usr/local/arm/2.95.3/bin/under the ARM-LINUX-GCC file, but make, is not found ARM-LINUX-GCC

Reason:

Exportpath= $PATH:/usr/local/arm/2.95.3/bin

is to set the current user's path, and Sudo executes make, using superuser privileges, which also uses the Superuser path (but there is no/usr/local/arm/3.4.1/bin in this path)

Workaround:

First open a shell with Superuser privileges:

Sudo–s

Under the current shell, set the environment variable:

Exportpath= $PATH:/usr/local/arm/2.95.3/bin

Then enter the kernel directory, make zimage, you can find the ARM-LINUX-GCC


Reprint Address: http://blog.sina.com.cn/s/blog_4670451c0100e1uw.html

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.