【问题标题】:Could not run "bash build/build.sh" command in Windows PowerShell无法在 Windows PowerShell 中运行“bash build/build.sh”命令
【发布时间】:2022-11-06 18:09:09
【问题描述】:

目前我正在测试一个 github 存储库,我正在关注 github 的 README.md,它要求我运行“bash build/build.sh”命令行来构建环境。但不知何故,我无法让命令在我的 PowerShell 中运行。 Windows PowerShell 不断显示“适用于 Linux 的 Windows 子系统没有安装的发行版。 使用 'wsl.exe --list --online' 列出可用的发行版 和 'wsl.exe --install' 进行安装。

也可以通过访问 Microsoft Store 来安装发行版: https://aka.ms/wslstore 错误代码:Bash/Service/CreateInstance/GetDefaultDistro/WSL_E_DEFAULT_DISTRO_NOT_FOUND"

我已经从 Microsoft Store 安装了适用于 Linux 预览版的 Windows 子系统,但我仍然无法运行“bash build/build.sh”命令。

【问题讨论】:

    标签: bash powershell cmd build


    【解决方案1】:

    问题解决了。我已经按照这个 youtube 视频解决了这个问题。 https://youtu.be/mDmpnkjETpw

    基本上,在开始尝试 Linux 命令之前,您必须选中“打开或关闭 Windows 功能”中的两个框。

    1. 虚拟机平台
    2. 适用于 Linux 的 Windows 子系统

      感谢观看。

    【讨论】:

      猜你喜欢
      • 2022-01-17
      • 2017-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-12
      • 1970-01-01
      相关资源
      最近更新 更多