当前位置: 技术问答>linux和unix
大侠们,辛苦了! 请指点下:make modules_install 提示:“make: arm-linux-gcc: Command not found”
来源: 互联网 发布时间:2017-05-22
本文导语: 我在sudo make modules_install 时,提示 “make: arm-linux-gcc: Command not found”, 我安装步骤是这样的: 1.经解压在:/home/ccc/myboard/opt/下 2.,将目录添加到 /etc/profile中 export PATH=$PATH:/home/ccc/myboard/opt/FriendlyARM/toolschain/4.4.3/...
我在sudo make modules_install 时,提示 “make: arm-linux-gcc: Command not found”,
我安装步骤是这样的:
1.经解压在:/home/ccc/myboard/opt/下
2.,将目录添加到 /etc/profile中 export PATH=$PATH:/home/ccc/myboard/opt/FriendlyARM/toolschain/4.4.3/bin
3.执行source /etc/profile
4.也确认了: 在arm-linux-gcc -v 也有显示 “Target: arm-none-linux-gnueabi
Configured with: /opt/FriendlyARM/mini2440/build-toolschain/working/src/gcc-4.4.3/configure --build=i386-build_redhat-linux-gnu --host=i386-build_redhat-linux-gnu --target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.4.3 --with-sysroot=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root --enable-languages=c,c++ --disable-multilib --with-arch=armv4t --with-cpu=arm920t --with-tune=arm920t --with-float=soft --with-pkgversion=ctng-1.6.1 --disable-sjlj-exceptions --enable-__cxa_atexit --with-gmp=/opt/FriendlyARM/toolschain/4.4.3 --with-mpfr=/opt/FriendlyARM/toolschain/4.4.3 --with-ppl=/opt/FriendlyARM/toolschain/4.4.3 --with-cloog=/opt/FriendlyARM/toolschain/4.4.3 --with-mpc=/opt/FriendlyARM/toolschain/4.4.3 --with-local-prefix=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99 --enable-long-long --enable-target-optspace
Thread model: posix
gcc version 4.4.3 (ctng-1.6.1) “
还望不吝赐教,多谢了!
我安装步骤是这样的:
1.经解压在:/home/ccc/myboard/opt/下
2.,将目录添加到 /etc/profile中 export PATH=$PATH:/home/ccc/myboard/opt/FriendlyARM/toolschain/4.4.3/bin
3.执行source /etc/profile
4.也确认了: 在arm-linux-gcc -v 也有显示 “Target: arm-none-linux-gnueabi
Configured with: /opt/FriendlyARM/mini2440/build-toolschain/working/src/gcc-4.4.3/configure --build=i386-build_redhat-linux-gnu --host=i386-build_redhat-linux-gnu --target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.4.3 --with-sysroot=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root --enable-languages=c,c++ --disable-multilib --with-arch=armv4t --with-cpu=arm920t --with-tune=arm920t --with-float=soft --with-pkgversion=ctng-1.6.1 --disable-sjlj-exceptions --enable-__cxa_atexit --with-gmp=/opt/FriendlyARM/toolschain/4.4.3 --with-mpfr=/opt/FriendlyARM/toolschain/4.4.3 --with-ppl=/opt/FriendlyARM/toolschain/4.4.3 --with-cloog=/opt/FriendlyARM/toolschain/4.4.3 --with-mpc=/opt/FriendlyARM/toolschain/4.4.3 --with-local-prefix=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99 --enable-long-long --enable-target-optspace
Thread model: posix
gcc version 4.4.3 (ctng-1.6.1) “
还望不吝赐教,多谢了!
|
由于你使用的是sudo make modules_install 获取超级用户权限来进行操作,你要先切换到root用户(su - root),查看你root用户的PATH环境中有没有你编译器的路径(echo $PATH)