I apologize if this question is a duplicate. I'm a noob when it comes to messing with brew.
I'm running this command:
brew install rbenv ruby-build
and in the output I'm getting this error:
==> Pouring pkg-config-0.29.2.sierra.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/pkg-config
Target /usr/local/bin/pkg-config
is a symlink belonging to pkg-config. You can unlink it:
brew unlink pkg-config
To force the link and overwrite all conflicting files:
brew link --overwrite pkg-config
To list all files that would be deleted:
brew link --overwrite --dry-run pkg-config
I haven't the foggiest idea what that means or the correct way to resolve it. I've read a few other bugs with similar issues, but I haven't found one that looked specifically like this.