When I try to install a library with homebrew (brew install aLibrary), I got the following error:
brew install aLibrary
Could not symlink lib/pkgconfig/a
You should simply give the permission to your account by running this command on terminal.
sudo chown -R $(whoami) (path)
In your case: sudo chown -R $(whoami) lib/pkgconfig/aFile /usr/local/lib/pkgconfig
sudo chown -R $(whoami) lib/pkgconfig/aFile /usr/local/lib/pkgconfig