Error message: arm-linux-gcc: Command not found

Source: Internet
Author: User
Tags superuser permission

Very depressed, looking for nearly one afternoon, always prompt arm-linux-gcc can not find, but it is indeed installed, in fact, is the problem of permissions, the original post is as follows: http://blog.sina.com.cn/s/blog_4670451c0100e1uw.html

Ubuntu does not have the root permission. It encountered a lot of trouble at the beginning. I checked a lot of information and finally solved the problem of arm-linux-gcc: Command not found.


Problem:

Sudo tar jxvf arm-linux-gcc.4.3.3.tar.bz2

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

#/Usr/local/arm/2.95.3/bin the location where the compiler is located

Use arm-linux-gcc
-V: Check that the cross compiler is successfully installed.

Tar jxvf kernel.tar.bz2

Decompress the package and generate the kernel directory.

 

Sudo make clean

Sudo make menuconfig

Sudo make zImage

 

Error message:

Arm-linux-gcc: Command not found

 

PATH contains/usr/local/arm/2.95.3/bin,
The arm-linux-gcc file is available in/usr/local/arm/2.95.3/bin/, but the arm-linux-gcc file cannot be found in make.

 

Cause:

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

Is to set the PATH of the current user, and when sudo executes make, the super user permission is used, and the Super User PATH is used (but in this PATH, no/usr/local/arm/3.4.1/bin)

 

Solution:

First open a shell with the superuser permission:

Sudo-s

In the current shell, set the environment variable:

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

# It cannot be used after shell is disabled. In this case, edit/etc/profile and add
Export PATH = $ PATH:/usr/local/arm/2.95.3/bin

 

Go to the kernel directory and make zImage to find the arm-linux-gcc.

Related Article

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.