Error: The following directories are not writable by your user:

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s