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
355
votes
26 answers

Installing Homebrew on macOS

According to the Homebrew site, to install it, I need to type: brew install wget I get an error message: -bash: brew: command not found Found this answer. The problem, however, is I don't see brew in /usr/local/bin. I added the below line to my…
DBWeinstein
  • 8,605
  • 31
  • 73
  • 118
339
votes
17 answers

For homebrew mysql installs, where's my.cnf?

For homebrew mysql installs, where's my.cnf? Does it install one?
chrismealy
  • 4,830
  • 2
  • 23
  • 24
327
votes
9 answers

How to avoid "cannot load such file -- utils/popen" from homebrew on OSX

I'm getting an error when I run brew in the terminal: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- utils/popen (LoadError) from…
kerokero
  • 3,271
  • 2
  • 13
  • 4
321
votes
40 answers

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'

I installed MySQL on Mac OS X Mountain Lion with homebrew install mysql, but when I tried mysql -u root I got the following error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) What does this error…
shrewdbeans
  • 11,971
  • 23
  • 69
  • 115
316
votes
17 answers

gem eventmachine fatal error: 'openssl/ssl.h' file not found

Just installed El Capitan and can't install gem eventmachine 1.0.7. openssl is at 1.0.2a-1. Tried to use --with-ssl-dir but it seems ignored. Reported it to their github repo as well. Any suggestions are really appreciated. Thanks. $ ls…
firedev
  • 20,898
  • 20
  • 64
  • 94
315
votes
31 answers

After installing Homebrew I get `zsh: command not found: brew`

➜ ~ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" -e:77: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040677 It appears Homebrew is already installed. If your intent is to…
Elad Benda2
  • 13,852
  • 29
  • 82
  • 157
315
votes
19 answers

Homebrew cask option not recognized?

I am following an online resource for installing two Mac utilities http://www.economyofeffort.com/2014/08/11/beyond-ctrl-remap-make-that-caps-lock-key-useful/ Here is the pertinent section: Install both Karabiner and Seil. (Here again, if you use…
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
284
votes
24 answers

Upgrade all the casks installed via Homebrew Cask

I use Homebrew Cask to install applications on OS X. How do I upgrade all the installed casks?
enrico.bacis
  • 30,497
  • 10
  • 86
  • 115
284
votes
15 answers

How do you update Xcode on OSX to the latest version?

What is the easiest way to update Xcode on OSX? I see this in the terminal: $ brew install xxxxxxx Warning: Your Xcode (4.3.3) is outdated Please install Xcode 4.6. But when I go to open up Xcode > Preferences > Downloads, it says there are no…
Evan R.
  • 3,277
  • 3
  • 16
  • 14
283
votes
7 answers

How do I find a list of Homebrew's installable packages?

Recently I installed Brew. How can I retrieve a list of available brew packages to install?
dnlcrl
  • 5,022
  • 3
  • 32
  • 40
283
votes
24 answers

How do I use brew installed Python as the default Python?

I try to switch to Homebrew (after using fink and macport) on Mac OS X 10.6.2. I have installed python 2.7 with brew install python The problem is that, contrary to Macport, it seems that there is no python_select utility, and my default mac…
sam
  • 3,498
  • 3
  • 22
  • 19
281
votes
6 answers

How do I update a formula with Homebrew?

How do I update a formula? I ran brew update. However, mongodb is still outdated according to brew outdated: mongodb (1.4.3-x86_64 < 1.6.5-x86_64)
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
273
votes
4 answers

What is the difference between brew install X and brew cask install X

I'm familiarizing myself with the whole homebrew kit and the documentation is rather poor. What is a cask, Cellar and a tap?
Novellizator
  • 13,633
  • 9
  • 43
  • 65
273
votes
7 answers

Brew install docker does not include docker engine?

Trying to setup docker from brew, however the engine does not seem to be included in any of the any of the official formulas. brew install docker-machine docker-compose So these only installs the clients? Is there no keg with the engine/daemon?
David Karlsson
  • 9,396
  • 9
  • 58
  • 103
265
votes
19 answers

Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)

I use the latest Apple M1 chip processor. And I keep getting errors while application installation. say., brew install openjdk@11 Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)! Please create a new…
Prashanth Sams
  • 19,677
  • 20
  • 102
  • 125