make[1]: arm-linux-gcc: 在 ubuntu 中找不到命令

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13541147/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 17:51:35  来源:igfitidea点击:

make[1]: arm-linux-gcc: Command not found in ubuntu

linuxgccmakefilekernelubuntu-11.04

提问by Mohamed Nada

Possible Duplicate:
what is arm-linux-gcc and how to install this in ubuntu

可能的重复:
什么是 arm-linux-gcc 以及如何在 ubuntu 中安装它

While I'm trying this command

当我尝试这个命令时

$ make ARCH=arm devkit8000 defconfig

I get this error:

我收到此错误:

make[1]: arm-linux-gcc: Command not found
make[1]: arm-linux-gcc: Command not found
scripts/kconfig/conf -s arch/arm/Kconfig
***
*** You have not yet configured your kernel!
*** (missing kernel .config file)
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[3]: *** [silentoldconfig] Error 1
make[2]: *** [silentoldconfig] Error 2
make[1]: *** No rule to make target `devkit8000'.  Stop.
make: *** [devkit8000] Error 2

How can i solve this error?

我该如何解决这个错误?

回答by Piotr Zierhoffer

Do you have ARM toolchain installed? If there is no such package in Ubuntu you can download it from the internet and add it to your $PATH.

您是否安装了 ARM 工具链?如果 Ubuntu 中没有这样的软件包,您可以从互联网上下载它并将其添加到您的 $PATH 中。

Take a look at what is arm-linux-gcc and how to install this in ubuntu

看看什么是 arm-linux-gcc 以及如何在 ubuntu 中安装它

EDIT: It might be, that your makefile is looking for different filenames, than you have.

编辑:可能是,您的 makefile 正在寻找与您不同的文件名。

Try locating arm-linux-gnueabi-gccfile. Go to that directory and you may create links for each file with arm-linux-gnueabi-prefix.

尝试定位arm-linux-gnueabi-gcc文件。转到该目录,您可以为每个带有arm-linux-gnueabi-前缀的文件创建链接。

Try after sudo su:

尝试后sudo su

ln -s arm-linux-gnueabi-gcc arm-linux-gcc
ln -s arm-linux-gnueabi-cc arm-linux-cc

etc.

等等。

Might help, but I do not guarantee. Usually works ;-)

可能有帮助,但我不保证。通常有效;-)