Could not symlink lib/pkgconfig/aFile
/usr/local/lib/pkgconfig is not writable.
What should I do?
There are several questions and answers (1,2, etc.) regarding this brewing error, this is a general question, as suggested here.
Start with Brew Doctor , Will show your errors and your brewing settings.
You may see something like this: “Warning: /usr/local/lib/pkgconfig is not writable.
It will give you advice: “You should chown /usr/local /lib/pkgconfig”.
This means: sudo chown -R $(whoami)/usr/local/lib/pkgconfig
Then you will need to link the file with this: brew Link yourLibrary
If this doesn’t work, hope the brew doctor’s output will give you enough to continue searching.
When I try to use homebrew (brew install aLibrary) When installing the library, I get the following error:
Could not symlink lib/pkgconfig/aFile
/usr/local/lib/pkgconfig is not writable.
What should I do?
There are several questions and answers (1,2, etc.) regarding this brewing error, this is a general question, as suggested here.< /p>
As explained here by Rick:
Start with the brewing doctor, it will show you errors with your brewing settings.< /p>
You may see something like this: “Warning: /usr/local/lib/pkgconfig is not writable.
It will give you advice: “You should chown /usr/local/lib/pkgconfig”.
This means: sudo chown -R $(whoami)/usr/local/lib/pkgconfig
Then you will need to link the file with this: brew link yourLibrary
If this does not work, hope the output of the Brew Doctor will give you enough to continue searching.