-
Notifications
You must be signed in to change notification settings - Fork 5
new issue
- Did you run
brew update
? - Did you check
brew doctor
? - Are you running the latest stable version of XCode?
- Do you have X11 installed?
- Have you installed the Java Developer Update?
- Have you completely removed Macports and/or Fink?
- Did you install everything without
sudo
? - Did you
sudo chown -R `whoami` /usr/local
?
If you promise you’ve done all of the above then you should Gist your brew install -v $FORMULA
output, your brew doctor
output and then file an issue with all of this information.
If we find out you didn’t actually do all the above because you thought you knew better or you really like sudo then you give us permission to tell your mother that you are a mean person.
You can read about each of these points in more detail below:
We might have already fixed the problem. Please run brew update
again.
Run the brew doctor
command to do a sanity check on your configuration.
Newer beta and older stable versions of Xcode have issues with many formulas. Make sure you are running Apple’s latest stable release for your version of OSX.
We need X11 installed for a lot of formulas for the libraries it provides (e.g. libpng). If you don’t have it installed, please do so from your OSX disc.
Apple’s changed it’s Java packages to no longer install all necessary headers. Please install the Java Developer Update from Apple. If you see an error referencing “jni.h
” this is probably because you haven’t done this yet.
Building C/C++ is ridiculously complicated, any number of things can go wrong and it’s pretty common to get conflicts between different versions of the same library. Or for a build tool to use the wrong version of a library. For example, CouchDB will look in the MacPorts directory even if it isn’t in the path, and this will break the brew installation.
Homebrew may still work, just be aware of the risks.
brew list --unbrewed | egrep '^(lib|include)'
If anything shows up, you should consider deleting these files especially if they are common libraries like libexpat.
If Homebrew is installed in a user directory and FileVault is enabled for this user, these formulas are reported to have some issues:
-
htop
(need to be run assudo
to see all processes) -
mysql
(if ran in ascreen
, must be restarted after logout/login)
Running Homebrew or installed programs as sudo
may cause permission problems, please try reinstalling and packages that seem to be mentioned without using sudo
.
Regardless, you might have still broken your permissions somehow. Fix them by running sudo chown -R $USER /usr/local
.