Install homebrew in Ubuntu 14.04
I'm trying to install homebrew on my Ubuntu. I followed all these instructions and used these commands:
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"
But when I run this:
brew tap homebrew/dupes
I get this error:
No command 'brew' found, did you mean:
Command 'qbrew' from package 'qbrew' (universe)
Command 'brec' from package 'bplay' (universe)
Solution 1:
It says that you need these packages:
sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
So, installing the above packages will solve your issue.
Solution 2:
Since Feb 2018, you install linuxbrew (=homebrew for linux) just by:
sudo apt install linuxbrew-wrapper
Solution 3:
One more package is needed in addition to those mentioned in Raphael's answer
sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
sudo apt install linuxbrew-wrapper
Solution 4:
Ubuntu 20.04, I used Alternative Installation
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)
Info:
https://docs.brew.sh/Homebrew-on-Linux
Solution 5:
For Ubuntu 20.04, you can see this post here: https://github.com/Homebrew/brew/blob/master/docs/Homebrew-on-Linux.md. Simply follow the instructions to add Homebrew to your PATH
.