How do I fix 'brew install pkg-config'?

dpott197 picture dpott197 · Nov 20, 2012 · Viewed 39.4k times · Source
Warning: Could not link pkg-config. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link pkg-config`‏‏‏‏‏‏

Answer

dpott197 picture dpott197 · Nov 20, 2012
  1. brew reinstall pkg-config
  2. rm -R offending-directory
  3. repeat step 1