Install homebrew in Ubuntu 14.04

36,699

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

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.

Solution 3

Since Feb 2018, you install linuxbrew (=homebrew for linux) just by:

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

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
Share:
36,699

Related videos on Youtube

kyrgyz_jigit
Author by

kyrgyz_jigit

I like learning foreign languages also interested in networking technology.

Updated on September 18, 2022

Comments

  • kyrgyz_jigit
    kyrgyz_jigit over 1 year

    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)
    
  • Lakhan
    Lakhan over 7 years
    After execute above command. I am trying to execute "brew install pdftohtml" but still got brew command not found.
  • Melebius
    Melebius about 6 years
    Better said: Starting from Xenial (16.04). packages.ubuntu.com/search?keywords=linuxbrew-wrapper
  • Pablo Bianchi
    Pablo Bianchi over 2 years
  • Pablo Bianchi
    Pablo Bianchi over 2 years
    From brew.sh: Paste that in a Linux shell prompt: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/inst‌​all.sh)". Usually running this kind of command isn't a good idea (unless you really trust the source).