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

标签 linux gcc makefile kernel ubuntu-11.04

<分区>

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

当我尝试这个命令时

$ make ARCH=arm devkit8000 defconfig

我收到这个错误:

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

我该如何解决这个错误?

最佳答案

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

看看what is arm-linux-gcc and how to install this in ubuntu

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

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

sudo su 之后尝试:

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

等等

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

关于linux - 制作[1] : arm-linux-gcc: Command not found in ubuntu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13541147/

相关文章:

linux - 用于获取操作系统版本的 Shell 脚本

c++ - makefile 为不同的体系结构设置不同的链接器标志

linux - 非常奇怪的 makefile 问题,没有那个文件或目录

linux - AWS Linux API 补丁

c++ - 将字符串添加到文件缓冲区,用于 cURL smtp 发送电子邮件的消息正文

linux - 在用户空间中实现 Linux 字符驱动程序

c - lua51 c 共享库问题

c++ - GCC 4.7.2:带有指向成员函数指针的 std::thread

有点与 boolean 值的比较

makefile - 创建 FORTRAN makefile