我在 Windows10 上的 Rails 上安装了 Ruby,但 WSL 没有看到安装

I installed Ruby on Rails on Windows10 but WSL doesn't see installation

我已经在 windows 10 上安装了 ruby, rails ,yarn ,node 并且它可以查看我写的是 rails -v 还是 ruby-v i可以创建项目等基本我可以在 rails 上使用 ruby。但是在 WSL Ubuntu rails -v returns ruby: bad interpreter: No such file or directory 错误 WSL 没有看到 ruby 和 rails 安装在 Windows10 我怎么能解决这个问题?

您需要在 WSL 上全部安装,我建议您按照 GoRails 指南在 windows 10

上安装 Ruby 和 RoR

The Guide