Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install homebrew manually

Tags:

macos

homebrew

I am trying to install homebrew manually. Homebrew works but I have problems with symlinks.

What I have done:

  1. cd into /usr/local
  2. execute mkdir homebrew && curl -L https://github.com/Homebrew/homebrew/tarball/master | tar xz --strip 1 -C homebrew
  3. execute usr/local/homebrew/bin/brew install wget

The problem is that there are no symlinks for what homebrew installs. The brew command can not be found in the terminal either. Homebrew lives under /usr/local/homebrew

like image 897
Thomas Avatar asked Sep 26 '22 05:09

Thomas


1 Answers

You must configure the PATH for OS X in order to find Homebrew.
That is, you must edit the bash_profile file by adding the following line:

export PATH=/usr/local/homebrew:$PATH

Restart the Terminal session and try again.

like image 84
AlessioX Avatar answered Oct 11 '22 14:10

AlessioX