wsl-openwrt-err

图片描述
内容简述

内容

wsl-Ubuntu24.04 中编译 openwrt 报错

1
2
3
4
5
6
7
8
rm -rf /home/csjtl/openwrt/build_dir/target-x86_64_musl/root-x86/boot /home/csjtl/openwrt/build_dir/target-x86_64_musl/root-x86/tmp/* /home/csjtl/openwrt/build_dir/target-x86_64_musl/root-x86/lib/apk/db/*.post-install* /home/csjtl/openwrt/build_dir/target-x86_64_musl/root-x86/usr/lib/opkg/info/*.postinst* /home/csjtl/openwrt/build_dir/target-x86_64_musl/root-x86/usr/lib/opkg/lists/* /home/csjtl/openwrt/build_dir/target-x86_64_musl/root-x86/var/lock/*.lock
find /home/csjtl/openwrt/build_dir/target-x86_64_musl/root-x86/ -mindepth 1 -execdir touch -hcd "@1718994473" "{}" +
find: The relative path 'Files/VanDyke' is included in the PATH environment variable, which is insecure in combination with the -execdir action of find. Please remove that entry from $PATH
make[2]: *** [package/Makefile:98: package/install] Error 1
make[2]: Leaving directory '/home/csjtl/openwrt'
make[1]: *** [package/Makefile:168: /home/csjtl/openwrt/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/csjtl/openwrt'
make: *** [/home/csjtl/openwrt/include/toplevel.mk:248: world] Error 2

wsl 中 echo $path, path 包含了 Windows 的 path。

1
/run/user/1002/fnm_multishells/567_1719028171392/bin:/home/csjtl/.local/share/fnm:/run/user/1002/fnm_multishells/564_1719028171380/bin:/home/csjtl/.local/share/fnm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/VanDyke Software/SecureFX/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files (x86)/VMware/VMware Workstation/bin/:/mnt/c/Program Files/Eclipse Adoptium/jdk-17.0.7.7-hotspot/bin:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Other/platform-tools:/mnt/c/Program Files/PuTTY/:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn/:/mnt/c/Program Files (x86)/Microsoft SQL Server/150/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/150/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/150/DTS/Binn/:/mnt/c/Program Files (x86)/Windows Kits/8.1/Windows Performance Toolkit/:/mnt/c/Program Files/dotnet/:/mnt/c/Users/tl851/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/tl851/AppData/Roaming/npm:/mnt/c/Users/tl851/AppData/Local/GitHubDesktop/bin:/mnt/c/Users/tl851/AppData/Local/:/mnt/c/Program Files (x86)/GnuWin32/bin:/mnt/c/Program Files (x86)/Microsoft SQL Server/160/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/160/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/160/DTS/Binn/:/mnt/c/Program Files/nodejs/:/mnt/c/Program Files/usbipd-win/:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/tl851/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/tl851/AppData/Local/GitHubDesktop/bin:/mnt/c/Users/tl851/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Program Files/mingw-w64/bin:/mnt/c/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin:/mnt/c/Users/tl851/AppData/Roaming/npm

插入代码

1
2
┌[csjtl🐙MSI-B360]➜(/mnt/c/Users/tl851/OneDrive/Desktop)
└> sudo vi /etc/wsl.conf
1
2
3
4
[boot]
systemd=true
[interop]
appendWindowsPath = false

视频或文章链接

视频或文章标题

文件下载

文件名称

Q群:290979342(聚焦单车交流群)