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