编译linux 源码:make[2]: g++: Command not found

下面是错误代码


make[2]: g++: Command not found
Makefile:50: recipe for target 'arg_parser.o' failed
make[2]: *** [arg_parser.o] Error 127
make[2]: *** Waiting for unfinished jobs....
make[2]: g++: Command not found
Makefile:50: recipe for target 'file_index.o' failed
make[2]: *** [file_index.o] Error 127
package/pkg-generic.mk:247: recipe for target '/media/bobe/work/nanopi4-ar0144-debian/buildroot/output/rockchip_rk3399/build/host-lzip-1.19/.stamp_built' failed
make[1]: *** [/media/bobe/work/nanopi4-ar0144-debian/buildroot/output/rockchip_rk3399/build/host-lzip-1.19/.stamp_built] Error 2
/media/bobe/work/nanopi4-ar0144-debian/buildroot/output/rockchip_rk3399/Makefile:16: recipe for target '_all' failed
make: *** [_all] Error 2
Command exited with non-zero status 1
you take 0:04.44 to build builroot
====Build buildroot failed!====

原因是:g++命令不存在,需要重新安装 ,还有g++ 版本太低也会报错

sudo apt-get install g++-4.7 ;
sudo apt-get remove g++ ;
mv g++-4.7 g++

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值