移植,Linux的,C

时间:2013-04-03 15:02:19

标签: c linux porting

运行此命令时出现此错误

[root@himanshi busybox-1.20.2]# make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnueabi- CONFIG_PREFIX=/home/himanshi/beagleboard_xm/target install
    /home/himanshi/beagleboard_xm/build/busybox-1.20.2/scripts/gcc-version.sh: line 11: arm-unknown-linux-gnueabi-gcc: command not found
      CC      applets/applets.o
    /bin/sh: arm-unknown-linux-gnueabi-gcc: command not found
    make[1]: *** [applets/applets.o] Error 127
make: *** [applets_dir] Error 2

事实上我收到错误命令也未找到此:: make ARCH = arm CROSS_COMPILE = arm-unknown-linux-gnueabi -

请协助我解决这个问题。 谢谢 Himanshi

1 个答案:

答案 0 :(得分:1)

你应该将arm-unknown-linux-gnueabi-gcc的路径放在PATH环境变量中,如下所示:

PATH=$PATH:/path/to/compiler
export PATH