arlyxiao / best-practice

1 stars 0 forks source link

WSL2 运行 phoenix framework 踩坑 #91

Open arlyxiao opened 2 years ago

arlyxiao commented 2 years ago

创建项目

mix phx.new hello --database sqlite3

mix phx.server 起动时会报错

==> exqlite
could not compile dependency :exqlite, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile exqlite", update it with "mix deps.update exqlite" or clean it with "mix deps.clean exqlite"
==> hello
** (Mix) "make" not found in the path. If you have set the MAKE environment variable,
please make sure it is correct.

感谢这篇博主提供的方案 https://qiita.com/ko-tk/items/6101d1be1e0cf6f7f267

需要额外安装 这些软件

sudo apt install make
sudo apt install build-essential
sudo apt install inotify-tools