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
4
votes
0 answers

Homebrew clang can't find C standard library headers

I installed clang with Homebrew. If I try to compile a hello world program, I get this error: In file included from hello.cpp:1: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/iostream:38: In file included from…
Indiana Kernick
  • 5,041
  • 2
  • 20
  • 50
4
votes
1 answer

git --version command returns different result from what's actually installed

Tried to update my git with homebrew and I encountered this problem: MBP:GitHub_Tutorial nasdas$ brew install git Warning: git 2.21.0 is already installed and up-to-date To reinstall 2.21.0, run `brew reinstall git` MBP:GitHub_Tutorial nasdas$ git…
user3545063
  • 681
  • 8
  • 17
4
votes
3 answers

I am not able to install Miniconda on MacOS X with Homebrew and .zsh

Please help, I tried to install Miniconda on Mac OS X Mojave with: brew cask install miniconda then I added export path to .zshrc file (Oh my Zsh): export PATH="$PATH:$HOME/miniconda3/bin" But it is not being recognized: zsh: command not found:…
Santi Pérez
  • 370
  • 4
  • 12
4
votes
1 answer

Upgrading from Postgres 10 to 11 with Postgis

I've recently had to upgrade from Postgres version from 10 to 11 with homebrew on my macOS Mojave and because of the need to use Postgis it looks not so trivial to follow the standard way of using brew postgresql-upgrade-database after upgrading…
fagiani
  • 2,293
  • 2
  • 24
  • 31
4
votes
1 answer

Brew cleanup unable to remove old python

Due to long travel, I did not get a chance to update or upgrade brew for a long time and now when I run brew update or brew cleanup I get the following message: $ brew cleanup Removing: /usr/local/Cellar/python/3.6.5... (3,196 files, 75MB) Error:…
leastaction
  • 143
  • 6
4
votes
1 answer

How to prevent brew from installing a copy of Python?

Python 3.7 is manually installed on my system, located in: /Library/Frameworks/Python.framework However, Homebrew still considers Python as a missing dependency for a formula which needs it (i.e., when typing brew missing). How can I tell Homebrew…
Egomet
  • 75
  • 7
4
votes
2 answers

How to fully revert Python to factory settings on Mac

I was looking for this information for a while, but as additional packages and python versions can be installed through homebrew and pip I have the feeling that my environment is messed up. Furthermore a long time ago, I had installed some stuff…
user1767754
  • 23,311
  • 18
  • 141
  • 164
4
votes
4 answers

ERROR! The server quit without updating PID file (/usr/local/var/mysql/`username`.lan.pid)

I cannot get rid of the error below. Installed homebrew via /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install mysql mysql.server start gives the error: ERROR! The server quit without…
ratrace123
  • 976
  • 4
  • 12
  • 24
4
votes
2 answers

Python/pip bad interpreter : no such file or directory

I seem to have lost all the python packages that I had on my Mac. I entered the command below to upgrade from python3.6 to python3.7: brew upgrade python and now when I enter ipython3 in the terminal it says: -bash: /usr/local/bin/ipython3:…
piccolo
  • 2,093
  • 3
  • 24
  • 56
4
votes
2 answers

Make an environment variable accessible from a formula

I try to write a private homebrew tap for gitlab thanks to this article: https://wheniwork.engineering/creating-a-private-homebrew-tap-with-gitlab-8800c453d893 Here is my formula: class Pouet < Formula desc "Pouet command line utility" homepage…
Martin Delille
  • 11,360
  • 15
  • 65
  • 132
4
votes
1 answer

How to load zsh/mapfile in ZSH

I have installed zsh version 5.6.2 via brew. I am having trouble loading mapfile module. adding zmodload zsh/mapfile mapfile gives error ~/.zshrc:15: failed to load module 'mapfile': dlopen(/usr/local/Cellar/zsh/5.6.2_1/lib/mapfile.bundle, 9): image…
Moulick
  • 4,342
  • 1
  • 13
  • 19
4
votes
2 answers

brew services start postgresql not working

I have installed postgres in Mac using command brew install postgresql@9.6 and is successfully installed brew services start postgresql@9.6 is successful also ==> Successfully started postgresql@9.6 (label: homebrew.mxcl.postgresql@9.6) But when…
summu
  • 388
  • 2
  • 7
  • 25
4
votes
3 answers

MacOS Mojave - brew install mysql@5.7 - Access denied for user 'root'@'localhost'

When installing mysql via homebrew (i.e. brew install mysql@5.7) on MacOS Mojave, a seemingly succesful installation prints the following instructions: We've installed your MySQL database without a root password. To secure it run: …
The Aelfinn
  • 13,649
  • 2
  • 54
  • 45
4
votes
1 answer

Install JRE (but not JDK) via brew on macOS

How do I install only JRE (not JDK) using homebrew on macOS?
user1
  • 404
  • 1
  • 5
  • 18
4
votes
1 answer

Kafka server does not start

I installed Kafka and Zookeeper on my OSX machine using Homebrew, and I'm trying to launch Zookeeper and Kafka-server following this blog post. zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties works fine, as confirmed using telnet…
albus_c
  • 6,292
  • 14
  • 36
  • 77
1 2 3
99
100