設置 | 登錄 | 註冊

作者共發了23篇帖子。

ModuleNotFoundError: No module named 'formatter'

11樓 巨大八爪鱼 2026-12-1 09:49
Your mpc header is missing
Please install it:
sudo apt-get install libmpc-dev
解決辦法:sudo dnf install libmpc-devel
12樓 巨大八爪鱼 2026-12-1 10:11
Your unbuffer is missing
Please install it:
sudo apt-get install expect expect-dev
解決辦法:sudo dnf install expect-devel
13樓 巨大八爪鱼 2026-12-1 10:16
2026-12-01T10:14:53
2026-12-01T10:14:53 You must install GNU patch
2026-12-01T10:14:53 make: *** [support/dependencies/dependencies.mk:27: dependencies] Error 1
解決辦法:sudo dnf install patch
14樓 巨大八爪鱼 2026-12-1 10:23
2026-12-01T10:17:46 Your Perl installation is not complete enough; at least the following
2026-12-01T10:17:46 modules are missing:
2026-12-01T10:17:46
2026-12-01T10:17:46 English
2026-12-01T10:17:46 ExtUtils::MakeMaker
2026-12-01T10:17:46 Thread::Queue
2026-12-01T10:17:46 FindBin
2026-12-01T10:17:46 IPC::Cmd
2026-12-01T10:17:46
2026-12-01T10:17:46 make: *** [support/dependencies/dependencies.mk:27: dependencies] Error 1
2026-12-01T10:17:46 make: Leaving directory '/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot'
解決辦法:
sudo dnf install perl-English
sudo dnf install perl-ExtUtils-MakeMaker
sudo dnf install perl-Thread-Queue
sudo dnf install perl-FindBin
sudo dnf install perl-IPC-Cmd
16樓 巨大八爪鱼 2026-12-1 10:50
make[1]: Leaving directory '/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot/support/kconfig'
  GEN     /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot/output/rockchip_rk3506_luckfox/Makefile
Parsing defconfig: /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot/configs/rockchip_rk3506_luckfox_defconfig
: No such file or directorykchip/base/base.config
: No such file or directorykchip/fs/vfat.config
' does not exist.  Exit.ockchip/base/base.config
***
*** Can't find default configuration "/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot/output/rockchip_rk3506_luckfox/.config.in"!
***
make: *** [Makefile:1060: rockchip_rk3506_luckfox_defconfig] Error 1
make: Leaving directory '/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot'
巨大八爪鱼:
解決辦法:將buildroot/configs/rockchip_rk3506_luckfox_defconfig文件恢復原狀。
[oct1158@oct1158-fedora Luckfox_Lyra_SDK_250815]$ cd buildroot/configs
[oct1158@oct1158-fedora configs]$ git checkout rockchip_rk3506_luckfox_defconfig
Updated 0 paths from the index
[oct1158@oct1158-fedora configs]$ cd ../..
[oct1158@oct1158-fedora Luckfox_Lyra_SDK_250815]$ ./build.sh
巨大八爪鱼:今天發現是換行符的問題。
make: Entering directory '/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot'
  GEN     /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot/output/rockchip_rk3506_luckfox/Makefile
Parsing defconfig: /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot/configs/rockchip_rk3506_luckfox_defconfig
: No such file or directorykchip/base/base.config
: No such file or directorykchip/fs/vfat.config
' does not exist.  Exit.ockchip/base/base.config
用Notepad++在右下角狀態欄上將buildroot/configs/rockchip_rk3506_luckfox_defconfig的換行符轉為Unix格式 (LF),然後再次用./build.sh命令編譯,問題就解決了。
make: Entering directory '/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot'
  GEN     /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot/output/rockchip_rk3506_luckfox/Makefile
Parsing defconfig: /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot/configs/rockchip_rk3506_luckfox_defconfig
Using configs/rockchip/base/kernel.config as base
Merging configs/rockchip/fs/e2fs.config
Merging configs/rockchip/base/common.config
Merging configs/rockchip/base/base.config
Merging configs/rockchip/fs/vfat.config
Merging /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot/configs/rockchip_rk3506_luckfox_defconfig
Value of BR2_TARGET_GENERIC_ROOT_PASSWD is redefined by /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot/configs/rockchip_rk3506_luckfox_defconfig:
Previous value:    BR2_TARGET_GENERIC_ROOT_PASSWD="rockchip"
New value:    BR2_TARGET_GENERIC_ROOT_PASSWD="luckfox"

#
# merged configuration written to /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot/output/rockchip_rk3506_luckfox/.config.in (needs make)
#
#
# configuration written to /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot/output/rockchip_rk3506_luckfox/.config
#
make: Leaving directory '/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot'
巨大八爪鱼:https://blog.csdn.net/ZLK1214/article/details/171868899
17樓 巨大八爪鱼 2026-12-2 09:36
Linking /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/firmware/parameter.txt from /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/device/rockchip/.chip/parameter-lyra-emmc.txt...
/usr/bin/which: no fakeroot in (/home/oct1158/.local/bin:/home/oct1158/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin)

Your fakeroot is missing
Please install it:
sudo apt-get install fakeroot
解決辦法:sudo dnf install fakeroot
18樓 巨大八爪鱼 2026-12-2 10:00
恭喜編譯成功!
19樓 巨大八爪鱼 2026-12-4 17:59
Fedora36升級到38後,經測試仍能正常編譯。

內容轉換:

回覆帖子
內容:
用戶名: 您目前是匿名發表。
驗證碼:
看不清?換一張