WSL 安裝 build environment
WSL 文件
https://learn.microsoft.com/zh-tw/windows/wsl/
- install git-repo
git clone https://gerrit.googlesource.com/git-repo
- 安裝套件
sudo apt install bison, flex, libssl-dev, unzip, texinfo, libpython2.7
- 不使用windows path,參考 wsl.conf
|
|---|
- 查看到 wsl 內的檔案
\\wsl$\Ubuntu\home
- 燒img可用tool https://www.balena.io/etcher/
已知問題:
- WSL2 速度快,但是會狂吃ram,目前似乎無解,只能降回wsl1,或是暫時解法加一個 ~/.wslconfig
[wsl2]
memory=6GB
swap=0
localhostForwarding=true |
|---|
留言
張貼留言