Build dependency: Please install Git (git-core) >= 1.6.5

2018-12-06 15:23:35  阅读 9566 次 评论 0 条

编译Openwrt源码,提示git依赖错误,意思是需要安装1.6.5以上版本的git,而系统中已安装2.17.1版本的git。

Build dependency: Please install Git (git-core) >= 1.6.5


/home/gooday/openwrt/include/prereq.mk:12: recipe for target 'prereq' failed

Prerequisite check failed. Use FORCE=1 to override.

/home/gooday/openwrt/include/toplevel.mk:140: recipe for target 'staging_dir/host/.prereq-build' failed

make: *** [staging_dir/host/.prereq-build] Error 1


解决方法:

方法一:

找到文件 openwrt/include/prereq-build.mk  的第148行,修改 git clone 2>&1 | grep -- --recursive 为 git verison

感谢网友【逸云飞扬】https://bbs.csdn.net/topics/392261336


方法二:

  1. 下载patch文件:https://gitlab.labs.nic.cz/turris/openwrt/uploads/0673001b14ab1d1769604ff0ce7d8781/git-version-check-fix.patch

  2. 将文件复制到/home/gooday/openwrt/include路径下

  3. 在当前路径下执行命令patch < git-version-check-fix.patch

本文地址:http://bloguan.com/?id=474
版权声明:本文为原创文章,版权归 博观网 所有,欢迎分享本文,转载请保留出处!

发表评论


表情

还没有留言,还不快点抢沙发?