目前共有2篇帖子。 字體大小:較小 - 100% (默認)▼  內容轉換:不轉換▼
 
點擊 回復
21 1
You must install GNU patch
一派掌門 二十級
1樓 發表于:2025-3-11 14:10

make[2]: Entering directory '/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/buildroot/buildroot-2023.02.6'
make[2]: Leaving directory '/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/buildroot/buildroot-2023.02.6'

You must install GNU patch
make[1]: *** [support/dependencies/dependencies.mk:27: dependencies] Error 1
make[1]: Leaving directory '/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/buildroot/buildroot-2023.02.6'
make: *** [Makefile:617: buildroot] Error 2
make: Leaving directory '/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv'
[build.sh:error] Running build_rootfs failed!
[build.sh:error] exit code 2 from line 852:
[build.sh:info]     make rootfs -C ${SDK_SYSDRV_DIR}
[oct1158@fed41-bh8f7e0 luckfox-pico]$

一派掌門 二十級
2樓 發表于:2025-3-11 14:11

原因:系统里面没有patch命令。

解决方案:安装patch命令。

[oct1158@fed41-bh8f7e0 ~]$ sudo dnf install patch
[sudo] password for oct1158:
Updating and loading repositories:
Repositories loaded.
Package                  Arch    Version                  Repository        Size
Installing:
 patch                   x86_64  2.7.6-25.fc41            fedora       266.7 KiB
Installing dependencies:
 ed                      x86_64  1.20.2-2.fc41            fedora       146.9 KiB

Transaction Summary:
 Installing:         2 packages

Total size of inbound packages is 213 KiB. Need to download 213 KiB.
After this operation, 414 KiB extra will be used (install 414 KiB, remove 0 B).
Is this ok [y/N]: y
[1/2] ed-0:1.20.2-2.fc41.x86_64         100% | 256.5 KiB/s |  81.8 KiB |  00m00s
[2/2] patch-0:2.7.6-25.fc41.x86_64      100% | 382.9 KiB/s | 131.0 KiB |  00m00s
--------------------------------------------------------------------------------
[2/2] Total                             100% | 307.9 KiB/s | 212.8 KiB |  00m01s
Running transaction
[1/4] Verify package files              100% | 666.0   B/s |   2.0   B |  00m00s
[2/4] Prepare transaction               100% |   4.0   B/s |   2.0   B |  00m00s
[3/4] Installing ed-0:1.20.2-2.fc41.x86 100% |  16.2 MiB/s | 149.2 KiB |  00m00s
[4/4] Installing patch-0:2.7.6-25.fc41. 100% | 484.2 KiB/s | 268.2 KiB |  00m01s
Complete!
[oct1158@fed41-bh8f7e0 ~]$ patch -v
GNU patch 2.7.6
Copyright (C) 2003, 2009-2012 Free Software Foundation, Inc.
Copyright (C) 1988 Larry Wall

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Larry Wall and Paul Eggert
[oct1158@fed41-bh8f7e0 ~]$

 

回復帖子

內容:
用戶名: 您目前是匿名發表
驗證碼:
(快捷鍵:Ctrl+Enter)
 

本帖信息

點擊數:21 回複數:1
評論數: ?
作者:巨大八爪鱼
最後回復:巨大八爪鱼
最後回復時間:2025-3-11 14:11
 
©2010-2025 Purasbar Ver2.0
除非另有聲明,本站採用創用CC姓名標示-相同方式分享 3.0 Unported許可協議進行許可。