我正在尝试在我的 Ubuntu 上安装 Homebrew。我遵循了所有这些说明并使用以下命令:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
但是当我运行这个时:
brew tap homebrew/dupes
我收到此错误:
No command 'brew' found, did you mean:
Command 'qbrew' from package 'qbrew' (universe)
Command 'brec' from package 'bplay' (universe)
答案1
它说你需要这些包:
sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
因此,安装上述软件包将解决您的问题。
答案2
自 2018 年 2 月起,您只需通过以下方式安装 linuxbrew (=homebrew for linux):
sudo apt install linuxbrew-wrapper
答案3
对于 Ubuntu 20.04,你可以在此处查看此帖子:https://github.com/Homebrew/brew/blob/master/docs/Homebrew-on-Linux.md。只需按照说明将 Homebrew 添加到您的PATH
。
答案4
Ubuntu 20.04,我使用了替代安装
git clone https://github.com/Homebrew/brew ~/.linuxbrew/Homebrew
mkdir ~/.linuxbrew/bin
ln -s ~/.linuxbrew/Homebrew/bin/brew ~/.linuxbrew/bin
eval $(~/.linuxbrew/bin/brew shellenv)
信息: