Questions tagged [homebrew]

Homebrew is a package manager for macOS and Linux that provides an easy interface to install many packages. It has been built to play nicely with your existing system and not interfere with it. It has been built entirely on top of Git and Ruby and is easily customized to suit your needs. Debugging help with Homebrew should at the very least include details of the output of `brew doctor`.

Homebrew is a package manager for and . It can be installed by following the instructions on its website.

It provides an easy interface to install many packages. A list of the available packages is online. Alternatively you can use the search feature to find the name of a package.

$ brew search vim
macvim                 vim        vimpc
pacvim                 vimpager
Caskroom/cask/macvim              Caskroom/cask/vimr

Installation is as easy as

$ brew install macvim

and Homebrew will take care of installing all of the necessary dependencies.

Debugging Homebrew Issues

Homebrew has very good documentation on debugging issues you may have. The key to it all is the brew doctor command which will check for any potential issues your system may have.

Homebrew Documentation

Homebrew contains a lot of documentation including an FAQ and Tips N' Tricks section.

There is also offline support available via the man brew and brew help commands.

Homebrew Manual

More information on all of the functions of brew is available via the Terminal with:

$ man brew

...or brew help, which will provide a brief overview of some of the more common functions available:

Example usage:
  brew search [TEXT|/REGEX/]
  brew info [FORMULA...]
  brew install FORMULA...
  brew update
  brew upgrade [FORMULA...]
  brew uninstall FORMULA...
  brew list [FORMULA...]

Troubleshooting:
  brew config
  brew doctor
  brew install --verbose --debug FORMULA

Contributing:
  brew create [URL [--no-fetch]]
  brew edit [FORMULA...]
  brew bump-formula-pr [FORMULA...]

Further help:
  brew commands
  brew help [COMMAND]
  man brew
  https://docs.brew.sh
6877 questions
251
votes
26 answers

Broken references in Virtualenvs

I recently installed a bunch of dotfiles on my Mac along with some other applications (I changed to iTerm instead of Terminal, and Sublime as my default text editor) but ever since, all my virtual environments have stopped working, although their…
oxtay
  • 3,990
  • 6
  • 30
  • 43
249
votes
10 answers

Ruby Bundle Symbol not found: _SSLv2_client_method (LoadError)

I was doing attempting to do some updates to openssl using homebrew and I somehow managed to break everything. I can't do anything now, this is what I get when I try to do bundle install: $ bundle…
Lenek
  • 2,517
  • 2
  • 12
  • 9
249
votes
2 answers

How can I tell which homebrew formulae are upgradable?

I know when I brew update, it lists all ==> Updated Formulae, but when I've updated several times without running brew upgrade, how do I get a list of all apps that could be upgraded?
Andy
  • 11,215
  • 5
  • 31
  • 33
248
votes
4 answers

What is the difference/usage of homebrew, macports or other package installation tools?

I've just recently switched to a Mac from Ubuntu. I was disappointed that mac doesn't have the convenient sudo apt-get in Ubuntu. I've heard that I should use homebrew but I'm not exactly sure what homebrew or macports does?
ROBOTPWNS
  • 4,299
  • 6
  • 23
  • 36
236
votes
15 answers

"ERROR:root:code for hash md5 was not found" when using any hg mercurial commands

When trying to use any hg Mercurial commands on the console, I keep getting this error. I installed Python using Homebrew and I am running Mac OS Catalina v. 10.15.1. Any reference would be appreciated. Here is the error I'm getting: hg commit…
poca
  • 3,630
  • 3
  • 13
  • 19
234
votes
6 answers

How do I install imagemagick with homebrew?

I'm trying to install Imagemagick on OSX Lion but something is not working as expected. -> brew install imagemagick /usr/local/git/bin/git ==> Cloning https://github.com/adamv/ImageMagick.git Cloning into…
Kleber S.
  • 8,110
  • 6
  • 43
  • 69
226
votes
10 answers

What is the recommended way to install Node.js, nvm and npm on MacOS X?

I am trying to use Homebrew as much as possible. What's the recommended way to install Node.js, nvm and npm on MacOS X?
ohho
  • 50,879
  • 75
  • 256
  • 383
222
votes
4 answers

Homebrew: list available versions with new formula@version format

Homebrew recently deprecated homebrew/versions in favour of making versions available on homebrew/core via the new formula@version format. For example (as per this answer), you can do brew install postgresql@9.5. Of course, this doesn't work for…
Phlippie Bosman
  • 5,378
  • 3
  • 26
  • 29
208
votes
12 answers

Brew update failed: untracked working tree files would be overwritten by merge

Trying to update Homebrew with brew update I got the following error error: The following untracked working tree files would be overwrittenby merge: Library/Formula/argp-standalone.rb Library/Formula/cocot.rb Please move or remove them…
BrainLikeADullPencil
  • 11,313
  • 24
  • 78
  • 134
205
votes
17 answers

How to install latest version of Node using Brew

The latest version of NodeJs right now is 0.4.1 The command brew install node right now, installs 0.2.6 - which is not ideal. I would like 0.4.1 I've looked at this list of commands for brew and tried brew install --HEAD node But that installs node…
PandaWood
  • 8,086
  • 9
  • 49
  • 54
198
votes
11 answers

How to install homebrew on M1 mac

I just got a new Mac, the M1 Macbook pro and I am trying to install homebrew, but every time I finish installing it, it tells me that it was not written to the path, and then when I try the advised whatever to add to the path, nothing happens and…
ema1982
  • 2,089
  • 2
  • 5
  • 4
193
votes
4 answers

Homebrew: Error: update-report should not be called directly

Running brew update I get the following: /usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory /usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory [etc..] Error:…
geotheory
  • 22,624
  • 29
  • 119
  • 196
188
votes
22 answers

Error: The 'brew link' step did not complete successfully

I'm trying to install node.js via Homebrew. Unfortunately, I get this error: ➜ ~ brew install node ==> Downloading http://nodejs.org/dist/v0.8.10/node-v0.8.10.tar.gz ########################################################################…
chandlervdw
  • 3,197
  • 4
  • 19
  • 21
187
votes
13 answers

How to reinstall python@2 from Homebrew?

I have been having issues with openssl and python@2 with brew, which have explained here (unresolved). The documented workaround to reinstall Python and openssl was not working, so I decided I would uninstall and reinstall Python. The problem is,…
Pauline
  • 3,566
  • 8
  • 23
  • 39
186
votes
22 answers

Library not loaded: /usr/local/lib/libpq.5.4.dylib

I am working on a rails app. Installed Postgresql using postgresql-9.1.2-1-osx.dmg Installed pg gem. Then when I executed rake db:create getting the following error…
Sathish
  • 4,446
  • 3
  • 22
  • 17