As explained here by Rick :
Start with a brew doctor who will show you the errors with setting up brew.
You may see something like this: "Warning: / usr / local / lib / pkgconfig is not writable."
This will give you advice: "You should probably chown / usr / local / lib / pkgconfig."
This means: sudo chown -R $(whoami) /usr/local/lib/pkgconfig
Then you will need to link the files to this: brew link yourLibrary
If this does not work, then the output of brew doctor will give you enough to continue your search.
arthur.sw Jan 05 '15 at 17:16 2015-01-05 17:16
source share