【发布时间】:2021-02-17 04:39:28
【问题描述】:
安装只需 5 个简单步骤:
首先,通过home page 中的命令安装自制软件:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
之后,按照说明 in this page,并将 ~/.bash_profile 更改为 ~/.profile,因为我使用 Ubuntu 作为我的 wsl 发行版,我必须给出这些命令:
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
test -r ~/.profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
但是现在,当我尝试运行 brew 时,我收到 command not found 错误。
【问题讨论】:
标签: windows homebrew windows-subsystem-for-linux ubuntu-20.04