win10 wsl buildroot syntax error near unexpected token `x86'

win10 在 linux子系统 wsl 里 编译buildroot

make linux-menuconfig 时出现的提示。

syntax error near unexpected token `x86'

 

原因是 wsl的环境变量里面,包含了windows的环境变量,有些字符不对,linux shell 不识别

echo $PATH 可以看到

 

可以用export PATH= 去掉window的环境变量

posted @ 2021-07-23 22:38  园友1683564  阅读(204)  评论(0编辑  收藏  举报