天嵌 ARM开发社区

 找回密码
 注册
查看: 1965|回复: 1

为什么说make: arm-linux-gcc: Command not found

[复制链接]
多云转晴 发表于 2015-4-12 11:27:39 | 显示全部楼层 |阅读模式
本帖最后由 多云转晴 于 2015-4-12 12:02 编辑

我用韦东山已经做好的ubuntu在虚拟机子上运行
输入arm-linux-gcc -v 显示版本 gcc版本是3.4.5 说明交叉编译工具已经安装好了
然后把天嵌自带的linux内核2.6的包解压到了opt文件夹按照天嵌的历程上面一步一步做
到了 make zImage 显示错误 不能正常执行 下面是原版显示
我又重新把EABI_4.3.3_EmbedSky_20090812.tar.bz2 这个包 按照教程上面加载了一遍  还是不行

不知道为什么
输入:arm-linux-gcc -v

显示:Reading specs from /work/tools/gcc-3.4.5-glibc-2.3.6/lib/gcc/arm-linux/3.4.5/specs
Configured with: /work/tools/create_crosstools/crosstool-0.43/build/arm-linux/gcc-3.4.5-glibc-2.3.6/gcc-3.4.5/configure --target=arm-linux --host=i686-host_pc-linux-gnu --prefix=/work/tools/gcc-3.4.5-glibc-2.3.6 --with-float=soft --with-headers=/work/tools/gcc-3.4.5-glibc-2.3.6/arm-linux/include --with-local-prefix=/work/tools/gcc-3.4.5-glibc-2.3.6/arm-linux --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
Thread model: posix
gcc version 3.4.5

输入:sudo make zImage
显示:

make: arm-linux-gcc: Command not found
  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
  CC      kernel/bounds.s
/bin/sh: arm-linux-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
TQ-lkp 发表于 2015-4-14 09:04:01 | 显示全部楼层
你编绎的时候用的是sudo make zImage
sudo实际上已经切换到了root用户,跟你之前用的用户不是同一个
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-29 18:32 , Processed in 1.062500 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表