Questions tagged [homebrew]
`homebrew` is a package manager for Mac OS X, in the spirit of Linux's `apt` or `yum`.
515
questions
236
votes
3
answers
97k
views
How can I remove outdated installed versions of Homebrew packages?
How can I remove outdated versions of Homebrew packages that are installed side-by-side with current versions?
153
votes
2
answers
198k
views
How do you re-install a package with Homebrew (Mac)?
Struggling to find good Homebrew documentation (or tutorial)...
In the mean time I need to reinstall ImageMagick that was installed with Homebrew (brew install imagemagick) and not sure if I should ...
105
votes
11
answers
272k
views
How should I set the PATH variable on my Mac so the Hombrew-installed tools are found?
Trying to set up Homebrew on a new Mac (on previous Macs I would install packages from source).
The first package I tried to install was Git:
$ brew install git
Installation went OK, but which git ...
96
votes
11
answers
64k
views
brew upgrade broke Vim on OS X (dyld: Library not loaded)
I've not run brew update && brew upgrade for a long time.
I just did a massive upgrade which turned out to broke my Vim.
This is what I got after running vim:
dyld: Library not loaded: /usr/...
93
votes
8
answers
143k
views
"FATAL: lock file "postmaster.pid" already exists"
I just reinstalled postgres via brew install postgres
I ran initdb /usr/local/var/postgres -E utf8 but got this:
The files belonging to this database system will be owned by user "atal421".
This ...
93
votes
7
answers
58k
views
Is it safe to install both Homebrew and Macports on the same machine?
I have MacPorts installed on my iMac with a fair number of ports installed.
I'm interested in trying out Homebrew, though, as I've heard many good things about it, and because I've noticed that it ...
90
votes
2
answers
69k
views
How to clean unused homebrew dependencies
How to remove all homebrew packages wich are not used by any other package?
Some packages are installed as dependency of other package. When packages are removed, dependent packages stay as leftovers.
...
87
votes
6
answers
110k
views
How do I install ant on OS X Mavericks?
After upgrading to OS X 10.9 Mavericks, ant is no longer on my path.
[126] 11:23:26 rkarl-mba-4:~/mobile-baselayer > ant
zsh: permission denied: ant
[126] 11:23:50 rkarl-mba-4:~/mobile-baselayer &...
87
votes
3
answers
179k
views
how can I uninstall using homebrew?
Can I uninstall something I installed via homebrew using homebrew?
82
votes
7
answers
171k
views
Can I install Homebrew without sudo privileges?
Homebrew nicely allows package installations without sudo privileges, but it seems that I need admin privileges to install Homebrew itself.
I'd like to install Homebrew in a Mac environment where I ...
79
votes
9
answers
85k
views
How to install Meld with Homebrew on Mac OSX?
To install meld on Mac OSX I try to run:
brew install meld
but I got the following error:
Error: No available formula for meld
What is the right way to install meld?
78
votes
7
answers
106k
views
How do I restart redis that I installed with brew?
I used brew to install redis (a key/value store database server) for my node.js app.
brew install redis
However, it seems to disappear and is very volatile. Because I'm using redis as my session ...
77
votes
2
answers
22k
views
How can Homebrew print a beer mug in Terminal?
Homebrew has a neat trick of printing out little icons next to its output. Like this:
If I copy paste the icon it on its own and hit enter I get the result:
-bash: $'?\237\215?': command not found
...
74
votes
8
answers
34k
views
Mac Homebrew and Wireshark
I've installed Wireshark(.org) using Homebrew.
brew install wireshark
at the end the script says
==> ./configure --prefix=/usr/local/Cellar/wireshark/1.2.7 --disable-dependency-tracking --disable-...
74
votes
6
answers
85k
views
Where can I find a list of all formulas available for homebrew?
Is there a way to get a list of all formulas (packages) I can install using homebrew for Mac OS X?
70
votes
6
answers
33k
views
How do I tell Homebrew to stop running brew update every time I want to install something?
Homebrew started running brew update automatically before every brew install. This means that I need to wait 10-20 seconds, depending on network speed, every time I want to install a package. This is ...
54
votes
1
answer
55k
views
Can't install Brew formulae correctly (Permission denied in /usr/local/lib)
I am installing a few Homebrew packages on a brand new Mac. However, there are some errors while linking:
ln: ./libsvn_wc-1.dylib: Permission denied
Error: The linking step did not complete ...
42
votes
1
answer
11k
views
homebrew show all pinned formulas
Homebrew has command, which tells it to stop upgrading mentioned formulas:
$ brew pin $FORMULA
Does anyone know if there is any homebrew command which shows the list of pinned formulas?
41
votes
4
answers
8k
views
How to install software packages on a Mac? (MacPorts, Fink, anything better?)
On my Mac OS X machine, how would you recommend I install command line software and other packages? I've been using MacPorts and it always seems quite slow, presumably because it has to compile the ...
39
votes
1
answer
123k
views
remove package installed by brew
Package name : sbt
Path : /usr/local/cellar/sbt
what I have try :
sudo rmdir sbt -i on my terminal but get
"rmdir: sbt: Directory not empty"
38
votes
3
answers
24k
views
Homebrew vs Fink vs Macports? [closed]
I am using Fink to install Unix apps on my mac, I just came across Homebrew and saw some good reviews about Homebrew.
So, my question is:
What package manager do you guys use for Mac?
I use Fink ...
37
votes
4
answers
126k
views
How to install libssl-dev ,libffi-dev on Mac os?
I can install libssl-dev and libffi-dev on Ubuntu with the command apt-get install libssl-dev libffi-dev, But I can't install on Mac; I have tried using the command: brew install libssl-dev libffi but ...
36
votes
4
answers
19k
views
Error: mongodb: unknown version :mountain_lion
I am running these simple commands on mac:
brew upgrade mongodb
or
brew install mongodb
I am getting this error below:
Error: mongodb: unknown version :mountain_lion
If i run the simple ...
31
votes
6
answers
26k
views
How do I reinstall all packages installed with Homebrew?
I recently had an issue where all of my linked binaries were removed from /usr/local/bin/. Fortunately, most of these were just dynamic links to binaries installed with Homebrew, so after ...
31
votes
5
answers
13k
views
How to determine which brew package provides a given file?
Is there a way to figure out which brew package provides a given file (like apt-file on Ubuntu or pkgfile / pacman -F on Arch)?
I'm not talking about querying which locally installed package owns a ...
29
votes
2
answers
13k
views
No available formula for “pdfunite” in Homebrew?
I am on Mac OS X 10.10 (Yosemite) and I am new to Bash. I am trying to install pdfunite. I installed Homebrew and ran the following command:
brew install pdfunite
And I received
Error: No ...
28
votes
1
answer
43k
views
is there any equivalent/branch of Homebrew for Windows? [duplicate]
Possible Duplicate:
Package managers for Windows
Homebrew is a package manager for macOS mimicking Linux ones (think about apt-get as a canonical example). Obviously, it has some trendy features, ...
27
votes
3
answers
66k
views
How do I fix "Library not loaded: libssl.1.0.0.dylib" with PostgreSQL?
After deleting Macports, I've had some strange behaviour. When I try to run PostgreSQL via CLI, I get:
pawel:~ pawel$ psql
dyld: Library not loaded: /opt/local/lib/libssl.1.0.0.dylib
Referenced ...
26
votes
1
answer
34k
views
PostgreSQL homebrew installation lacks config files
So I successfully installed PostgreSQL 9.1 on MacOSX Lion. Unlike people say, I didn't have to change the PATH and no other version of PostgreSQL was installed on the system ($ psql --version
shows ...
26
votes
3
answers
6k
views
Installing Homebrew packages without linking
I'd like to install several versions of Ruby (or really any Homebrew package) without linking any of them. Basically, I'd like to treat any formula as keg-only.
I can't seem to find a way to do this, ...
25
votes
2
answers
18k
views
Symlink error when installing MySQL via Homebrew
Trying to install MySQL via Homebrew. The install seems to work fine but i get an error:
"Error: The linking step did not complete successfully
The formula built, but is not symlinked into /usr/local
...
23
votes
1
answer
33k
views
brew install [email protected] can't connect to local MySQL server through socket
I needed MySQL 5.7 installed on Mac OS High Sierra so I ran brew install [email protected].
When I do brew services list I see [email protected] started admin /Users/admin/Library/LaunchAgents/homebrew.mxcl.mysql@5....
22
votes
2
answers
23k
views
Using git-gui on Mac with Homebrew
I have Git installed with Homebrew.
However, git-gui doesn't seem to come stock in /usr/local/bin.
This answer suggests I should create an alias to usr/local/git/libexec/git-core/git-gui, but this ...
22
votes
3
answers
41k
views
Warning: Unbrewed dylibs were found in /usr/local/lib
When I enter the command brew doctor I get the error below. This this something to worry about?
Im very new to command line stuff. Im using homebrew to install Drush (for Drupal).
Last login: Wed ...
21
votes
3
answers
32k
views
Cannot start mysql: InnoDB: Upgrade after a crash is not supported
I am trying to run MySQL from a Homebrew installation, but it keeps failing when trying mysql.server start.
My /usr/local/var/mysql/<name>.local.err reads as so, and keeps sending this error ...
21
votes
3
answers
40k
views
How can I find all installable versions with brew?
Suppose I have a component foo that has versions 2.1, 2.2, 2.2.1 and 3.0 available. Suppose I have installed version 2.1. How do I tell brew to get the latest version in the 2.x line but not 3.0?
Is ...
20
votes
2
answers
23k
views
brew install gettext, should i force link it?
I am doing some web development and the translation engine requires gettext. Should I force link it?
$ django-admin.py makemessages -l es
CommandError: Can't find xgettext. Make sure you have GNU ...
20
votes
5
answers
85k
views
How to install PHP, Pear, PECL, and APC with Homebrew on Mac OS X?
I'm trying to install APC for PHP 5.3 in the easiest way possible. I love Homebrew so I started down that route. I was able to install PHP 5.3.6 with this command:
brew install https://github.com/...
20
votes
3
answers
73k
views
Install GParted on a mac with Homebrew or Macports?
I'd like to install Gparted on my mac, and I thought I could use Homebrew or Macports to help with that, but I can't seem to figure it out. I tried using Homebrew because I haven't really heard good ...
19
votes
10
answers
26k
views
How to install matplotlib on OS X?
I want to install matplotlib on OS X. If possible, using homebrew.
I installed Python 2.7.1 using brew install python, I modified my path to use it
I installed pip using brew install pip
I installed ...
19
votes
4
answers
25k
views
Brew installed, linked, but not found
I just installed mtr via Homebrew, and it completed seemingly successfully (i.e., nothing unusual).
MBA% mtr
zsh: command not found: mtr
That's odd. I figured I'd try again:
MBA% brew install mtr
...
18
votes
3
answers
31k
views
Errors in Homebrew on OS X Lion
I just ran the Homebrew script as described in the installation page. I then ran brew doctor in Terminal, and it returned several errors. I'm not sure how to fix those errors, please help.
brew ...
18
votes
3
answers
22k
views
OS X Yosemite - Too many files open
I recently upgraded from Mavericks to Yosemite....headaches ensued
I'm pretty sure my problem lies w/ the number of files I can open - but I'm not sure how to solve it. I'm also pretty sure I've ...
17
votes
6
answers
15k
views
Can't use homebrew installed git
I'm encountering a really weird issue when I try to use the latest version of git I just installed via homebrew. which git is pointing me to the homebrew install, but calling git returns the original ...
16
votes
2
answers
16k
views
How do I find out where brew links end up?
brew link puts symlinks all over the place. How do I find out where, for a particular package?
For example, I have cairo installed via brew. brew list cairo shows me a list of installed files. When I ...
16
votes
1
answer
9k
views
MySQL Preference Pane control for MySQL installed via Homebrew
this is a repost of my question at apple.stackexchange.com
I have installed MySQL via homebrew: brew install mysql. I'd like to get the MySQL preference pane hooked up to my installation of MySQL ...
15
votes
6
answers
25k
views
How can I install PHPmyadmin on Mac Lion using Homebrew
How can I install PHPmyadmin using homebrew, if that possible. I'm using Mac 10.7.
I installed Homebrew, and it's working perfectly. I use it to download php 5.4 and mysql. Both are working perfectly,...
15
votes
4
answers
45k
views
pip not working on hombrew python 2.7 install
I've installed python using homebrew and I can't invoke pip from the bash. I've tried amending my .bash_profile to include /usr/local/bin/python and /usr local/share/python to no avail.
When I use ...
15
votes
1
answer
33k
views
Change install location and prefix of homebrew packages
My /usr/local and /usr/local/bin permissions on my machine are different from traditional machines (and they have to be that way).
Is it possible to configure homebrew to install in a different ...
14
votes
3
answers
11k
views
How to find out a file belongs to which package in Mac OS X?
Is there a way to find out which Application / package owns or creates a specific file? For example, in Linux these commands will show the package owner
apt-file /bin/progname
rpm -qf /bin/progname
...