An error occurred while setting up the arm-linux-gcc command in Ubuntu.

Source: Internet
Author: User
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: Commandnotfound. Problem: sudotarjxvfarm-linux-gcc.4.3.3.tar.bz2exportPATH = $ PATH:/usr/local/arm/2.95.3/bin #/usr/local/arm/2.

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.

UseArm-linux-gcc -V Check whether the cross compiler is installed successfully.

Tar jxvf kernel.tar.bz2

Decompress and generateKernelDirectory

 

Sudo make clean

Sudo make menuconfig

Sudo make zImage

 

Error message:

Arm-linux-gcc: Command not found

 

PATHContains/Usr/local/arm/2.95.3/bin, /Usr/local/arm/2.95.3/bin/UnderArm-linux-gccFile,MakeIs not foundArm-linux-gcc

 

Cause:

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

YesCurrent user'sPATH, AndSudoRunMakeThe Super User permission is used, and www.linuxidc.com is used.Super UserPATH(But thisPATHIs not/Usr/local/arm/3.4.1/bin)

 

Solution:

First open a Super User permissionShell:

Sudo-s

In the currentShellTo set the environment variables:

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

 

GoKernelDirectory,Make zImage, You can findArm-linux-gccNow

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.