In Linux / Unix at times you might encounter such Error: The following directories are not writable by your user:
/usr/local/lib/pkgconfig
Current file / folder permission, users, groups or attributes.
Terminal --> ls -la /usr/local/lib/
drwxr-xr-x 4 root wheel 128 Jul 10 21:27 pkgconfig
Solution –
You should change the ownership of these directories to your user.
sudo chown -R $(whoami) /usr/local/lib/pkgconfig
Terminal --> ls -la /usr/local/lib/
drwxr-xr-x 4 JENNY wheel 128 Jul 10 21:27 pkgconfig
And make sure that your user has write permission.
chmod u+w /usr/local/lib/pkgconfig
Terminal --> ls -la /usr/local/lib/
drwxr-xr-x 4 JENNY wheel 128 Jul 10 21:27 pkgconfig