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.